From d1299aabbd0b4ae860078691b628dc6b90698039 Mon Sep 17 00:00:00 2001 From: Noah Misch Date: Sat, 16 Feb 2019 13:12:28 -0800 Subject: [PATCH] Fix PERMIT_DECLARATION_AFTER_STATEMENT initialization. The defect caused a mere warning and only for gcc versions before 3.4.0. --- configure | 2 +- configure.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index de3153f2eb..481bd3b66d 100755 --- a/configure +++ b/configure @@ -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 diff --git a/configure.in b/configure.in index 0373c155f0..9c7a9738bc 100644 --- a/configure.in +++ b/configure.in @@ -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) -- 2.40.0