From: Nikita Popov Date: Mon, 15 Apr 2019 08:43:49 +0000 (+0200) Subject: Disable strict aliasing warnings X-Git-Tag: php-7.4.0alpha1~499 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3f19592f92fb3b646a2e52c6af6df18f78f27a98;p=php Disable strict aliasing warnings It seems like GCC 5 likes to warn about exactly those trivial strict aliasing violations that it's not going to miscompile anyway and the warnings are gone in newer versions. Just disable the noise. --- diff --git a/Zend/Zend.m4 b/Zend/Zend.m4 index 44cdcee71e..0d10dbaae7 100644 --- a/Zend/Zend.m4 +++ b/Zend/Zend.m4 @@ -107,7 +107,7 @@ else AC_DEFINE(ZEND_DEBUG,0,[ ]) fi -test -n "$GCC" && CFLAGS="$CFLAGS -Wall" +test -n "$GCC" && CFLAGS="$CFLAGS -Wall -Wno-strict-aliasing" test -n "$DEBUG_CFLAGS" && CFLAGS="$CFLAGS $DEBUG_CFLAGS" if test "$ZEND_MAINTAINER_ZTS" = "yes"; then