]> granicus.if.org Git - php/commitdiff
Enable -Wall on release builds for GCC
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 12 Apr 2019 10:09:09 +0000 (12:09 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 12 Apr 2019 10:51:17 +0000 (12:51 +0200)
-Wall was already enabled for debug builds, enable it for release
builds as well.

Zend/Zend.m4

index 0755a58f14cb302ab7d3ef63f806a2ce603a3764..44cdcee71e470d58c48eb88389606ac3c4a720db 100644 (file)
@@ -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