mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Prepend compiler warning flags to CFLAG instead to append them
Credit to @bwoebi for the idea Closes GH-6057
This commit is contained in:
parent
48e31be7a3
commit
5c1cf7669b
1 changed files with 2 additions and 2 deletions
|
@ -212,9 +212,9 @@ else
|
||||||
AC_DEFINE(ZEND_DEBUG,0,[ ])
|
AC_DEFINE(ZEND_DEBUG,0,[ ])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
test -n "$GCC" && CFLAGS="$CFLAGS -Wall -Wextra -Wno-strict-aliasing -Wno-implicit-fallthrough -Wno-unused-parameter -Wno-sign-compare"
|
test -n "$GCC" && CFLAGS="-Wall -Wextra -Wno-strict-aliasing -Wno-implicit-fallthrough -Wno-unused-parameter -Wno-sign-compare $CFLAGS"
|
||||||
dnl Check if compiler supports -Wno-clobbered (only GCC)
|
dnl Check if compiler supports -Wno-clobbered (only GCC)
|
||||||
AX_CHECK_COMPILE_FLAG([-Wno-clobbered], CFLAGS="$CFLAGS -Wno-clobbered", , [-Werror])
|
AX_CHECK_COMPILE_FLAG([-Wno-clobbered], CFLAGS="-Wno-clobbered $CFLAGS", , [-Werror])
|
||||||
|
|
||||||
test -n "$DEBUG_CFLAGS" && CFLAGS="$CFLAGS $DEBUG_CFLAGS"
|
test -n "$DEBUG_CFLAGS" && CFLAGS="$CFLAGS $DEBUG_CFLAGS"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue