From 3f19592f92fb3b646a2e52c6af6df18f78f27a98 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Mon, 15 Apr 2019 10:43:49 +0200 Subject: [PATCH] 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. --- Zend/Zend.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.50.1