diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2020-01-23 22:40:47 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2020-01-23 22:40:47 (GMT) |
commit | 492d186a5ceb2da47ef952fe52f890dbc4071b20 (patch) | |
tree | 17d0368e7c665d5ceee5d6dbb077679a6d8f125e /config/cmake/HDFCompilerFlags.cmake | |
parent | 9a97411a61b886c4f2b5417dce29157a010b47c1 (diff) | |
download | hdf5-492d186a5ceb2da47ef952fe52f890dbc4071b20.zip hdf5-492d186a5ceb2da47ef952fe52f890dbc4071b20.tar.gz hdf5-492d186a5ceb2da47ef952fe52f890dbc4071b20.tar.bz2 |
Revert "Revert "Moved -Wunsuffixed-float-constants to the developer warnings.""
This reverts commit 6486e06545bf637d46e18a787395542f4fca143a.
Diffstat (limited to 'config/cmake/HDFCompilerFlags.cmake')
-rw-r--r-- | config/cmake/HDFCompilerFlags.cmake | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/config/cmake/HDFCompilerFlags.cmake b/config/cmake/HDFCompilerFlags.cmake index c803384..99a8f56 100644 --- a/config/cmake/HDFCompilerFlags.cmake +++ b/config/cmake/HDFCompilerFlags.cmake @@ -151,7 +151,12 @@ 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 -Wunsuffixed-float-constants") + 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 () endif () # Append more extra warning flags that only gcc 4.6+ know about |