summaryrefslogtreecommitdiffstats
path: root/config/gnu-flags
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2019-11-22 20:34:42 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-05-20 14:19:37 (GMT)
commit765ab7ee4523113280e4861676e45a5552ffb396 (patch)
tree5e671af49caba1560404bf09c3c09ac59eda55aa /config/gnu-flags
parent0e7dffc0dd751ab69fea3d8e1f9c7a69d417eeae (diff)
downloadhdf5-765ab7ee4523113280e4861676e45a5552ffb396.zip
hdf5-765ab7ee4523113280e4861676e45a5552ffb396.tar.gz
hdf5-765ab7ee4523113280e4861676e45a5552ffb396.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/gnu-flags')
-rw-r--r--config/gnu-flags4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/gnu-flags b/config/gnu-flags
index 8478cd0..8705170 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"
@@ -325,6 +324,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