diff options
author | Larry Knox <lrknox@hdfgroup.org> | 2020-05-18 19:28:51 (GMT) |
---|---|---|
committer | Larry Knox <lrknox@hdfgroup.org> | 2020-05-18 19:28:51 (GMT) |
commit | fcd87d2569ca4d8396c7db4eddb46cab04010abf (patch) | |
tree | fdd61c5aeeaf2ba4cf440177ef6d34f46d19741c /config/gnu-warnings/developer-4.8 | |
parent | 820363aa6d4e1dd1705237ee16cbf19f7649a4a0 (diff) | |
download | hdf5-fcd87d2569ca4d8396c7db4eddb46cab04010abf.zip hdf5-fcd87d2569ca4d8396c7db4eddb46cab04010abf.tar.gz hdf5-fcd87d2569ca4d8396c7db4eddb46cab04010abf.tar.bz2 |
Revise gnu-*flags and cmake/HDF*CompilerFlags.cmake files to add warning
flags for GCC compilers version 4.8 and above.
Removed files from gnu-warnings that only apply to versions < 4.8.
Consolidated warnings from versions < 4.8 that apply to versions >= 4.8
into the 4.8 warnings files.
Diffstat (limited to 'config/gnu-warnings/developer-4.8')
-rw-r--r-- | config/gnu-warnings/developer-4.8 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/config/gnu-warnings/developer-4.8 b/config/gnu-warnings/developer-4.8 index b0109e2..fd76f6c 100644 --- a/config/gnu-warnings/developer-4.8 +++ b/config/gnu-warnings/developer-4.8 @@ -1 +1,23 @@ +# developer warning flags added for GCC >= 4.5 +# +# -Wjump-misses-init makes lots of noise for a questionable benefit. +# Can jumping over an initialization in C cause any harm, if +# the variable is never *used* before it has been initialized? +# +-Wjump-misses-init +-Wunsuffixed-float-constants + +# developer warning flag added for GCC >= 4.6 +-Wsuggest-attribute=const + +# developer warning flags added for GCC >= 4.7 +-Wsuggest-attribute=noreturn +-Wsuggest-attribute=pure +# +# It's not clear that -Wvector-operation-performance warnings are +# actionable, so they are demoted to "developer" warnings. +# +-Wvector-operation-performance + +# developer warning flag added for GCC >= 4.8 -Wsuggest-attribute=format |