diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2020-01-23 22:35:16 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2020-01-23 22:35:16 (GMT) |
commit | 6486e06545bf637d46e18a787395542f4fca143a (patch) | |
tree | 66a8cfc5bb4844ebe24e59163589fbb17cc2f14a /config | |
parent | 12bc75c6172ca7b64c33b17cf538a7629500cf2f (diff) | |
download | hdf5-6486e06545bf637d46e18a787395542f4fca143a.zip hdf5-6486e06545bf637d46e18a787395542f4fca143a.tar.gz hdf5-6486e06545bf637d46e18a787395542f4fca143a.tar.bz2 |
Revert "Moved -Wunsuffixed-float-constants to the developer warnings."
This reverts commit 12bc75c6172ca7b64c33b17cf538a7629500cf2f.
Diffstat (limited to 'config')
-rw-r--r-- | config/cmake/HDFCompilerFlags.cmake | 7 | ||||
-rw-r--r-- | config/gnu-flags | 4 |
2 files changed, 2 insertions, 9 deletions
diff --git a/config/cmake/HDFCompilerFlags.cmake b/config/cmake/HDFCompilerFlags.cmake index 99a8f56..c803384 100644 --- a/config/cmake/HDFCompilerFlags.cmake +++ b/config/cmake/HDFCompilerFlags.cmake @@ -151,12 +151,7 @@ if (NOT MSVC AND CMAKE_COMPILER_IS_GNUCC) # Append more extra warning flags that only gcc 4.5+ know about if (CMAKE_C_COMPILER_ID STREQUAL "GNU" AND NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 4.5) - set (H5_CFLAGS1 "${H5_CFLAGS1} -Wstrict-overflow=5 -Wjump-misses-init") - if (HDF5_ENABLE_DEV_WARNINGS) - set (H5_CFLAGS0 "${H5_CFLAGS0} -Wunsuffixed-float-constants") - else () - set (H5_CFLAGS0 "${H5_CFLAGS0} -Wno-unsuffixed-float-constants") - endif () + set (H5_CFLAGS1 "${H5_CFLAGS1} -Wstrict-overflow=5 -Wjump-misses-init -Wunsuffixed-float-constants") endif () # Append more extra warning flags that only gcc 4.6+ know about diff --git a/config/gnu-flags b/config/gnu-flags index eaa30a9..a5f3258 100644 --- a/config/gnu-flags +++ b/config/gnu-flags @@ -235,9 +235,7 @@ if test "X-gcc" = "X-$cc_vendor"; then # gcc 4.5 if test $cc_vers_major -ge 5 -o $cc_vers_major -eq 4 -a $cc_vers_minor -ge 5; then - H5_CFLAGS="$H5_CFLAGS -Wstrict-overflow=5 -Wjump-misses-init" - DEVELOPER_WARNING_CFLAGS="$DEVELOPER_WARNING_CFLAGS -Wunsuffixed-float-constants" - NO_DEVELOPER_WARNING_CFLAGS="$NO_DEVELOPER_WARNING_CFLAGS -Wno-unsuffixed-float-constants" + H5_CFLAGS="$H5_CFLAGS -Wstrict-overflow=5 -Wjump-misses-init -Wunsuffixed-float-constants" fi # gcc 4.6 |