summaryrefslogtreecommitdiffstats
path: root/config/clang-flags
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2021-10-14 19:29:25 (GMT)
committerGitHub <noreply@github.com>2021-10-14 19:29:25 (GMT)
commit69fcf58e7f329246c00fd40aa35a02d7e1919b7d (patch)
tree74386b4652093616ddd3165fe14c9d8897dcb16b /config/clang-flags
parent8299373d41b74d988196b80f55f25efe43b7531c (diff)
downloadhdf5-69fcf58e7f329246c00fd40aa35a02d7e1919b7d.zip
hdf5-69fcf58e7f329246c00fd40aa35a02d7e1919b7d.tar.gz
hdf5-69fcf58e7f329246c00fd40aa35a02d7e1919b7d.tar.bz2
Merge delete the noerror- variants of the compiler flags files #1033 (#1092)
Diffstat (limited to 'config/clang-flags')
-rw-r--r--config/clang-flags9
1 files changed, 4 insertions, 5 deletions
diff --git a/config/clang-flags b/config/clang-flags
index 92a8973..5c377ed 100644
--- a/config/clang-flags
+++ b/config/clang-flags
@@ -20,15 +20,15 @@
#
# For now, do not promote any warnings to errors.
#
-PROMOTE_ERRORS_DFLT=no
+WARNINGS_AS_ERRORS_DFLT=no
#
# This filter rewrites -Werror= as -W, in that way demoting warnings
-# promoted to errors back to warnings, if PROMOTE_ERRORS is no.
+# promoted to errors back to warnings, if WARNINGS_AS_ERRORS is no.
#
demote_errors()
{
- if [ ${PROMOTE_ERRORS:-${PROMOTE_ERRORS_DFLT}} = no ]; then
+ if [ ${WARNINGS_AS_ERRORS:-${WARNINGS_AS_ERRORS_DFLT}} = no ]; then
sed 's,-Werror=,-W,g'
else
cat
@@ -44,7 +44,7 @@ demote_errors()
load_clang_arguments()
{
set -- $(for arg; do
- sed 's,#.*$,,' $srcdir/config/clang-warnings/${arg}
+ sed 's,#.*$,,' $srcdir/config/clang-warnings/${arg} | demote_errors
done)
IFS=' ' echo "$*"
}
@@ -183,7 +183,6 @@ if test "X-clang" = "X-$cc_vendor" -o "X-Apple LLVM" = "X-$cc_vendor"; then
H5_CFLAGS="$H5_CFLAGS $(load_clang_arguments general)"
H5_ECFLAGS="$H5_ECFLAGS $(load_clang_arguments error-general)"
- H5_NECFLAGS="$H5_NECFLAGS $(load_clang_arguments noerror-general)"
######################
# Developer warnings #