diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2021-10-14 19:29:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-14 19:29:04 (GMT) |
commit | 7432a7d918bf6bbfb1b671fe020711f6d56cc31e (patch) | |
tree | 7929371e0b1aefd6e4b112343ae065a7407ff055 /config/clang-cxxflags | |
parent | 4bb3e661c51b75fa78a7d2e55fa963b7f263bd0d (diff) | |
download | hdf5-7432a7d918bf6bbfb1b671fe020711f6d56cc31e.zip hdf5-7432a7d918bf6bbfb1b671fe020711f6d56cc31e.tar.gz hdf5-7432a7d918bf6bbfb1b671fe020711f6d56cc31e.tar.bz2 |
1.12 Merge delete the noerror- variants of the compiler flags files #1033 (#1091)
* Merge delete the noerror- variants of the compiler flags files #1033
* Remove files from MANIFEST
Diffstat (limited to 'config/clang-cxxflags')
-rw-r--r-- | config/clang-cxxflags | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/config/clang-cxxflags b/config/clang-cxxflags index 23ba6a3..5255c5f 100644 --- a/config/clang-cxxflags +++ b/config/clang-cxxflags @@ -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 "$*" } @@ -161,7 +161,6 @@ if test "X-clang" = "X-$cxx_vendor" -o "X-Apple LLVM" = "X-$cxx_vendor"; then H5_CXXFLAGS="$H5_CXXFLAGS $(load_clang_arguments general)" H5_ECXXFLAGS="$H5_ECXXFLAGS $(load_clang_arguments error-general)" - H5_NECXXFLAGS="$H5_NECXXFLAGS $(load_clang_arguments noerror-general)" ###################### # Developer warnings # |