summaryrefslogtreecommitdiffstats
path: root/config/gnu-flags
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2020-02-21 21:40:55 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2020-02-21 21:41:05 (GMT)
commita6706e3a7850aa3095e8c3530417cfdcf7236e96 (patch)
tree3e9decb56f0c0f7b936dc2e411d1245bafbaf8df /config/gnu-flags
parent7daf7d4a0bf63fa811a16306b88ccd1b21b9dc16 (diff)
downloadhdf5-a6706e3a7850aa3095e8c3530417cfdcf7236e96.zip
hdf5-a6706e3a7850aa3095e8c3530417cfdcf7236e96.tar.gz
hdf5-a6706e3a7850aa3095e8c3530417cfdcf7236e96.tar.bz2
Merge changes from develop for CMake and Java
Diffstat (limited to 'config/gnu-flags')
-rw-r--r--config/gnu-flags6
1 files changed, 4 insertions, 2 deletions
diff --git a/config/gnu-flags b/config/gnu-flags
index ede17fb..3ca74c1 100644
--- a/config/gnu-flags
+++ b/config/gnu-flags
@@ -251,7 +251,9 @@ 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 -Wunsuffixed-float-constants"
+ 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"
fi
# gcc 4.6
@@ -292,7 +294,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