summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2019-02-16 13:12:28 -0800
committerNoah Misch <noah@leadboat.com>2019-02-16 13:12:28 -0800
commitd1299aabbd0b4ae860078691b628dc6b90698039 (patch)
tree7e6bad953394aee6b4a8c8770f04b5d73575021e
parent608b167f9f9c4553c35bb1ec0eab9ddae643989b (diff)
downloadpostgresql-d1299aabbd0b4ae860078691b628dc6b90698039.tar.gz
Fix PERMIT_DECLARATION_AFTER_STATEMENT initialization.
The defect caused a mere warning and only for gcc versions before 3.4.0.
-rwxr-xr-xconfigure2
-rw-r--r--configure.in2
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)