diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2023-03-18 04:22:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-18 04:22:01 (GMT) |
commit | 6b8249accb398eaeb9036610c214f4c70e542194 (patch) | |
tree | 44c1fc9827d61a94c4b050322bf582194718e21a /config/clang-warnings | |
parent | 7c5d0a3756032a3f5f2cbbdf56b8824177584223 (diff) | |
download | hdf5-6b8249accb398eaeb9036610c214f4c70e542194.zip hdf5-6b8249accb398eaeb9036610c214f4c70e542194.tar.gz hdf5-6b8249accb398eaeb9036610c214f4c70e542194.tar.bz2 |
Align compiler flags with develop (#2586)
Brings many compiler flag changes over from develop. Does NOT bring over
-Werror changes.
Also turns on Fortran silent rules, as in develop.
Diffstat (limited to 'config/clang-warnings')
-rw-r--r-- | config/clang-warnings/developer-general | 1 | ||||
-rw-r--r-- | config/clang-warnings/general | 16 |
2 files changed, 5 insertions, 12 deletions
diff --git a/config/clang-warnings/developer-general b/config/clang-warnings/developer-general index 74d8404..b80552f 100644 --- a/config/clang-warnings/developer-general +++ b/config/clang-warnings/developer-general @@ -1,4 +1,3 @@ --Wformat-nonliteral -Wmissing-noreturn -Wsometimes-uninitialized -Wswitch-enum diff --git a/config/clang-warnings/general b/config/clang-warnings/general index f0c9b93..433dff9 100644 --- a/config/clang-warnings/general +++ b/config/clang-warnings/general @@ -8,19 +8,13 @@ -Wformat=2 -Wframe-larger-than=16384 -Wimplicit-fallthrough -# -# NOTE: Due to the divergence in the C and C++, we're dropping support for -# compiling the C library with a C++ compiler and dropping the -Wc++-compat -# warning. -# --Wno-c++-compat -# -# NOTE: Disable the -Wformat-nonliteral from -Wformat=2 here and re-add -# it to the developer flags. -# --Wno-format-nonliteral -Wnull-dereference -Wunused-const-variable -Wwrite-strings -Wpedantic -Wvolatile-register-var +# NOTE: Due to the divergence in the C and C++, we're dropping support for +# compiling the C library with a C++ compiler and dropping the -Wc++-compat +# warning. +# +-Wno-c++-compat |