com php-src: Enable -Wall on release builds for GCC: Zend/Zend.m4
| From: | Nikita Popov | Date: | Fri, 12 Apr 2019 10:51:17 +0000 |
| Subject: | com php-src: Enable -Wall on release builds for GCC: Zend/Zend.m4 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-105693@lists.php.net to get a copy of this message | ||
Commit: 3744533468767441f13ebbdda52f354ada0764fc
Author: Nikita Popov <nikita.ppv@gmail.com> Fri, 12 Apr 2019 12:09:09 +0200
Parents: ba40f505e5804a5f62a1e220b0dce9d417a27f4d
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3744533468767441f13ebbdda52f354ada0764fc
Log:
Enable -Wall on release builds for GCC
-Wall was already enabled for debug builds, enable it for release
builds as well.
Changed paths:
M Zend/Zend.m4
Diff:
diff --git a/Zend/Zend.m4 b/Zend/Zend.m4
index 0755a58..44cdcee 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