diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2020-01-01 18:18:56 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-20 14:20:22 (GMT) |
commit | 37a141db61c873b915fbb4fd706fe6a65afbcaca (patch) | |
tree | 22118e725a0fcf6e5762434571e6cf9db2ecda48 /config | |
parent | 6cfeb96b36d0d1b709d4a8726ed97e79e75a926c (diff) | |
download | hdf5-37a141db61c873b915fbb4fd706fe6a65afbcaca.zip hdf5-37a141db61c873b915fbb4fd706fe6a65afbcaca.tar.gz hdf5-37a141db61c873b915fbb4fd706fe6a65afbcaca.tar.bz2 |
Changed -Wformat-truncation to level 2 in CMake w/ gcc.
Diffstat (limited to 'config')
-rw-r--r-- | config/cmake/HDFCompilerFlags.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/cmake/HDFCompilerFlags.cmake b/config/cmake/HDFCompilerFlags.cmake index f49b674..c803384 100644 --- a/config/cmake/HDFCompilerFlags.cmake +++ b/config/cmake/HDFCompilerFlags.cmake @@ -200,7 +200,7 @@ if (NOT MSVC AND CMAKE_COMPILER_IS_GNUCC) # Append more extra warning flags that only gcc 7.x+ know about if (CMAKE_C_COMPILER_ID STREQUAL "GNU" AND NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 7.0) - set (H5_CFLAGS4 "${H5_CFLAGS4} -Walloc-zero -Walloca -Wduplicated-branches -Wformat-overflow=2 -Wformat-truncation=2 -Wimplicit-fallthrough=5 -Wrestrict") + set (H5_CFLAGS4 "${H5_CFLAGS4} -Walloc-zero -Walloca -Wduplicated-branches -Wformat-overflow=2 -Wformat-truncation=1 -Wimplicit-fallthrough=5 -Wrestrict") endif () # Append more extra warning flags that only gcc 8.x+ know about |