diff options
author | Larry Knox <lrknox@hdfgroup.org> | 2020-05-18 19:28:51 (GMT) |
---|---|---|
committer | Larry Knox <lrknox@hdfgroup.org> | 2020-05-19 02:33:13 (GMT) |
commit | 22b61f470acc54afad5705dea23a7a8423e65cff (patch) | |
tree | a8d6d4be22e69b92f7e51a00711578de13614255 /config/gnu-warnings/4.8 | |
parent | 0d88516c2eafcd4ca538442afe21caf4ff1aeb1f (diff) | |
download | hdf5-22b61f470acc54afad5705dea23a7a8423e65cff.zip hdf5-22b61f470acc54afad5705dea23a7a8423e65cff.tar.gz hdf5-22b61f470acc54afad5705dea23a7a8423e65cff.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/4.8')
-rw-r--r-- | config/gnu-warnings/4.8 | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/config/gnu-warnings/4.8 b/config/gnu-warnings/4.8 index 5dc577f..c7e3dd1 100644 --- a/config/gnu-warnings/4.8 +++ b/config/gnu-warnings/4.8 @@ -1 +1,25 @@ +# warning flags added for GCC >= 4.3 +-Wlarger-than=2560 +-Wlogical-op + +# warning flags added for GCC >= 4.4 +-Wframe-larger-than=16384 +-Wpacked-bitfield-compat +-Wsync-nand + +# warning flag added for GCC >= 4.5 +-Wstrict-overflow=5 + +# warning flags added for GCC >= 4.6 +-Wdouble-promotion +-Wtrampolines + +# warning flag added for GCC >= 4.7 +# +# -Wstack-usage=8192 warnings need to be swept up on a branch so +# that we can stop burdening the whole development team. +# +-Wstack-usage=8192 + +# warning flag added for GCC >= 4.8 -Wmaybe-uninitialized |