summaryrefslogtreecommitdiffstats
path: root/config/gnu-flags
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2020-01-01 18:12:52 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2020-01-01 18:12:52 (GMT)
commit4fd5a3e00bdc865f56f6b357fa3197835b20af95 (patch)
tree9059d16f540c423be197496a67cfcc006c86a792 /config/gnu-flags
parentbbd4f7d2a0bea8f984868e2bf88dd1c5f5aa35e8 (diff)
downloadhdf5-4fd5a3e00bdc865f56f6b357fa3197835b20af95.zip
hdf5-4fd5a3e00bdc865f56f6b357fa3197835b20af95.tar.gz
hdf5-4fd5a3e00bdc865f56f6b357fa3197835b20af95.tar.bz2
Changed -Wformat-truncation's level from 2 to 1.
Diffstat (limited to 'config/gnu-flags')
-rw-r--r--config/gnu-flags2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/gnu-flags b/config/gnu-flags
index 16795d0..a5f3258 100644
--- a/config/gnu-flags
+++ b/config/gnu-flags
@@ -276,7 +276,7 @@ if test "X-gcc" = "X-$cc_vendor"; then
# gcc 7
if test $cc_vers_major -ge 7; then
DEVELOPER_WARNING_CFLAGS="$DEVELOPER_WARNING_CFLAGS -Wstringop-overflow=2"
- H5_CFLAGS="$H5_CFLAGS -Walloc-zero -Walloca -Wduplicated-branches -Wformat-overflow=2 -Wformat-truncation=2 -Wimplicit-fallthrough=5 -Wrestrict"
+ H5_CFLAGS="$H5_CFLAGS -Walloc-zero -Walloca -Wduplicated-branches -Wformat-overflow=2 -Wformat-truncation=1 -Wimplicit-fallthrough=5 -Wrestrict"
fi
# gcc 8