From: Emil Velikov Date: Tue, 31 Oct 2017 19:26:33 +0000 (+0000) Subject: configure.ac: append to existing initializer override flags X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6dd56fafe2d6d55c8804a27de3b52fb53a4c98b0;p=mesa.git configure.ac: append to existing initializer override flags Currently we were overwriting the existing warning flags, instead of adding new [as applicable]. Fixes c5d2e2d43f6 ("configure: Test for -Wno-initializer-overrides") Signed-off-by: Emil Velikov Reviewed-by: Matt Turner Reviewed-by: Eric Engestrom --- diff --git a/configure.ac b/configure.ac index b6f2d4595ef..c69c7d6b0c9 100644 --- a/configure.ac +++ b/configure.ac @@ -339,8 +339,8 @@ esac AC_SUBST([VISIBILITY_CFLAGS]) AC_SUBST([VISIBILITY_CXXFLAGS]) -AX_CHECK_COMPILE_FLAG([-Wno-override-init], [WNO_OVERRIDE_INIT="-Wno-override-init"]) # gcc -AX_CHECK_COMPILE_FLAG([-Wno-initializer-overrides], [WNO_OVERRIDE_INIT="-Wno-initializer-overrides"]) # clang +AX_CHECK_COMPILE_FLAG([-Wno-override-init], [WNO_OVERRIDE_INIT="$WNO_OVERRIDE_INIT -Wno-override-init"]) # gcc +AX_CHECK_COMPILE_FLAG([-Wno-initializer-overrides], [WNO_OVERRIDE_INIT="$WNO_OVERRIDE_INIT -Wno-initializer-overrides"]) # clang AC_SUBST([WNO_OVERRIDE_INIT]) dnl