From: Nikita Popov Date: Fri, 12 Apr 2019 10:09:09 +0000 (+0200) Subject: Enable -Wall on release builds for GCC X-Git-Tag: php-7.4.0alpha1~523 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3744533468767441f13ebbdda52f354ada0764fc;p=php Enable -Wall on release builds for GCC -Wall was already enabled for debug builds, enable it for release builds as well. --- diff --git a/Zend/Zend.m4 b/Zend/Zend.m4 index 0755a58f14..44cdcee71e 100644 --- a/Zend/Zend.m4 +++ b/Zend/Zend.m4 @@ -101,13 +101,13 @@ if test "$ZEND_DEBUG" = "yes"; then if test "$CFLAGS" = "-g -O2"; then CFLAGS=-g fi - test -n "$GCC" && DEBUG_CFLAGS="$DEBUG_CFLAGS -Wall" test -n "$GCC" && test "$USE_MAINTAINER_MODE" = "yes" && \ DEBUG_CFLAGS="$DEBUG_CFLAGS -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations" else AC_DEFINE(ZEND_DEBUG,0,[ ]) fi +test -n "$GCC" && CFLAGS="$CFLAGS -Wall" test -n "$DEBUG_CFLAGS" && CFLAGS="$CFLAGS $DEBUG_CFLAGS" if test "$ZEND_MAINTAINER_ZTS" = "yes"; then