]> granicus.if.org Git - postgresql/commitdiff
Fix PERMIT_DECLARATION_AFTER_STATEMENT initialization.
authorNoah Misch <noah@leadboat.com>
Sat, 16 Feb 2019 21:12:28 +0000 (13:12 -0800)
committerNoah Misch <noah@leadboat.com>
Sat, 16 Feb 2019 21:12:28 +0000 (13:12 -0800)
The defect caused a mere warning and only for gcc versions before 3.4.0.

configure
configure.in

index de3153f2ebc9f5c73af212c75254e83c11ec2737..481bd3b66d724f9e6087e0419f77f6ebdfb6d61e 100755 (executable)
--- 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
 
index 0373c155f0ba19d403a3468bf948e3dac2f29ae9..9c7a9738bc4fd3a1a0138bb8273cb665c1667578 100644 (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)