Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 05b9345

Browse files
authored
Autotools: Remove unused DEBUG_CFLAGS variable (#12659)
This removes the unused DEBUG_CFLAGS variable from configure.ac. It has been once set in the build files similarly to Zend.m4 but was then removed and simplified. CS synced and DEBUG_CFLAGS checked and appended with AS_VAR_* macros.
1 parent 33289df commit 05b9345

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

‎Zend/Zend.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ AX_CHECK_COMPILE_FLAG([-Wformat-truncation], CFLAGS="-Wformat-truncation $CFLAGS
190190
AX_CHECK_COMPILE_FLAG([-Wstrict-prototypes], CFLAGS="-Wstrict-prototypes $CFLAGS", , [-Werror])
191191
AX_CHECK_COMPILE_FLAG([-fno-common], CFLAGS="-fno-common $CFLAGS", , [-Werror])
192192
193-
test -n "$DEBUG_CFLAGS" && CFLAGS="$CFLAGS $DEBUG_CFLAGS"
193+
AS_VAR_IF([DEBUG_CFLAGS],,, [AS_VAR_APPEND([CFLAGS], [" $DEBUG_CFLAGS"])])
194194
195195
if test "$ZEND_ZTS" = "yes"; then
196196
AC_DEFINE(ZTS,1,[ ])

‎configure.ac

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -938,8 +938,6 @@ if test "$PHP_CONFIG_FILE_SCAN_DIR" = "DEFAULT"; then
938938
fi
939939
AC_MSG_RESULT([$PHP_CONFIG_FILE_SCAN_DIR])
940940

941-
test -n "$DEBUG_CFLAGS" && CFLAGS="$CFLAGS $DEBUG_CFLAGS"
942-
943941
PHP_ARG_ENABLE([sigchild],
944942
[whether to enable PHP's own SIGCHLD handler],
945943
[AS_HELP_STRING([--enable-sigchild],

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /