Fix PERMIT_DECLARATION_AFTER_STATEMENT initialization.

The defect caused a mere warning and only for gcc versions before 3.4.0.
This commit is contained in:
Noah Misch 2019-02-16 13:12:28 -08:00
parent 608b167f9f
commit d1299aabbd
2 changed files with 2 additions and 2 deletions

2
configure vendored
View File

@ -5306,7 +5306,7 @@ fi
# -Wdeclaration-after-statement isn't applicable for C++. Specific C files
# disable it, so AC_SUBST the negative form.
PERMIT_DECLARATION_AFTER_STATEMENT=
if test x"save_$CFLAGS" != x"$CFLAGS"; then
if test x"$save_CFLAGS" != x"$CFLAGS"; then
PERMIT_DECLARATION_AFTER_STATEMENT=-Wno-declaration-after-statement
fi

View File

@ -481,7 +481,7 @@ if test "$GCC" = yes -a "$ICC" = no; then
# -Wdeclaration-after-statement isn't applicable for C++. Specific C files
# disable it, so AC_SUBST the negative form.
PERMIT_DECLARATION_AFTER_STATEMENT=
if test x"save_$CFLAGS" != x"$CFLAGS"; then
if test x"$save_CFLAGS" != x"$CFLAGS"; then
PERMIT_DECLARATION_AFTER_STATEMENT=-Wno-declaration-after-statement
fi
AC_SUBST(PERMIT_DECLARATION_AFTER_STATEMENT)