Skip to content

Commit d1299aa

Browse files
committed
Fix PERMIT_DECLARATION_AFTER_STATEMENT initialization.
The defect caused a mere warning and only for gcc versions before 3.4.0.
1 parent 608b167 commit d1299aa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

configure

+1-1
Original file line numberDiff line numberDiff line change
@@ -5306,7 +5306,7 @@ fi
53065306
# -Wdeclaration-after-statement isn't applicable for C++. Specific C files
53075307
# disable it, so AC_SUBST the negative form.
53085308
PERMIT_DECLARATION_AFTER_STATEMENT=
5309-
if test x"save_$CFLAGS" != x"$CFLAGS"; then
5309+
if test x"$save_CFLAGS" != x"$CFLAGS"; then
53105310
PERMIT_DECLARATION_AFTER_STATEMENT=-Wno-declaration-after-statement
53115311
fi
53125312

configure.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ if test "$GCC" = yes -a "$ICC" = no; then
481481
# -Wdeclaration-after-statement isn't applicable for C++. Specific C files
482482
# disable it, so AC_SUBST the negative form.
483483
PERMIT_DECLARATION_AFTER_STATEMENT=
484-
if test x"save_$CFLAGS" != x"$CFLAGS"; then
484+
if test x"$save_CFLAGS" != x"$CFLAGS"; then
485485
PERMIT_DECLARATION_AFTER_STATEMENT=-Wno-declaration-after-statement
486486
fi
487487
AC_SUBST(PERMIT_DECLARATION_AFTER_STATEMENT)

0 commit comments

Comments
 (0)