summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2019-11-22 20:34:42 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2019-11-22 20:34:42 (GMT)
commit6d5ec83fc3537ec7fc6e9f1802ae36ef9b54acb4 (patch)
tree8ee7043e64ad1bd87f77ba5f8350bc92258f1448 /config
parentfa1dfbbd8dc1cc226e440d6a9462a4b02009f11b (diff)
downloadhdf5-6d5ec83fc3537ec7fc6e9f1802ae36ef9b54acb4.zip
hdf5-6d5ec83fc3537ec7fc6e9f1802ae36ef9b54acb4.tar.gz
hdf5-6d5ec83fc3537ec7fc6e9f1802ae36ef9b54acb4.tar.bz2
Always warn on maybe-uninitialized. -Wincompatible-pointer-types was not
available until GCC 5, so enable it only if that's the GCC version we're using.
Diffstat (limited to 'config')
-rw-r--r--config/gnu-flags4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/gnu-flags b/config/gnu-flags
index d228c8b..bc120a8 100644
--- a/config/gnu-flags
+++ b/config/gnu-flags
@@ -198,8 +198,7 @@ if test "X-gcc" = "X-$cc_vendor"; then
#
# H5_ECFLAGS="$H5_ECFLAGS -Werror=discarded-qualifiers"
H5_ECFLAGS="$H5_ECFLAGS -Werror=implicit-function-declaration"
- H5_ECFLAGS="$H5_ECFLAGS -Werror=incompatible-pointer-types"
- H5_ECFLAGS="$H5_ECFLAGS -Wmaybe-uninitialized"
+ H5_CFLAGS="$H5_CFLAGS -Wmaybe-uninitialized"
H5_ECFLAGS="$H5_ECFLAGS -Werror=pointer-sign"
H5_ECFLAGS="$H5_ECFLAGS -Werror=pointer-to-int-cast"
H5_ECFLAGS="$H5_ECFLAGS -Werror=switch"
@@ -323,6 +322,7 @@ if test "X-gcc" = "X-$cc_vendor"; then
# gcc 5
if test $cc_vers_major -ge 5; then
H5_CFLAGS="$H5_CFLAGS -Warray-bounds=2 -Wc99-c11-compat"
+ H5_ECFLAGS="$H5_ECFLAGS -Werror=incompatible-pointer-types"
fi
# gcc 6