summaryrefslogtreecommitdiffstats
path: root/config/cmake
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2020-01-01 18:18:56 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2020-01-09 01:43:27 (GMT)
commit78f0ecc3b98c77b4293c02e78d158a8385513d37 (patch)
tree82ff566b59ec950d79b62e93d5b6aa073e7c0390 /config/cmake
parent23c2f0211e17cb15ce8d0ae1e5d69ad8c0eff9f7 (diff)
downloadhdf5-78f0ecc3b98c77b4293c02e78d158a8385513d37.zip
hdf5-78f0ecc3b98c77b4293c02e78d158a8385513d37.tar.gz
hdf5-78f0ecc3b98c77b4293c02e78d158a8385513d37.tar.bz2
Changed -Wformat-truncation to level 2 in CMake w/ gcc.
Diffstat (limited to 'config/cmake')
-rw-r--r--config/cmake/HDFCompilerFlags.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/cmake/HDFCompilerFlags.cmake b/config/cmake/HDFCompilerFlags.cmake
index adace89..1e94ca9 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