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:28:23 (GMT) |
commit | 1a9316668131ab84d99a557789bdef9763de5ed2 (patch) | |
tree | bb8aa65d3f6d9c5baba0d67bc5efa70f233b69a2 /config/gnu-warnings/4.8 | |
parent | 6b9363e29ed507ef4876b4694666b40989a4496c (diff) | |
download | hdf5-1a9316668131ab84d99a557789bdef9763de5ed2.zip hdf5-1a9316668131ab84d99a557789bdef9763de5ed2.tar.gz hdf5-1a9316668131ab84d99a557789bdef9763de5ed2.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 |