From 765ab7ee4523113280e4861676e45a5552ffb396 Mon Sep 17 00:00:00 2001 From: David Young Date: Fri, 22 Nov 2019 14:34:42 -0600 Subject: 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. --- config/gnu-flags | 4 ++-- 1 file 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 -- cgit v0.12