diff options
author | Noah Misch <noah@leadboat.com> | 2019-02-16 13:12:28 -0800 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2019-02-16 13:12:28 -0800 |
commit | d1299aabbd0b4ae860078691b628dc6b90698039 (patch) | |
tree | 7e6bad953394aee6b4a8c8770f04b5d73575021e | |
parent | 608b167f9f9c4553c35bb1ec0eab9ddae643989b (diff) | |
download | postgresql-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-x | configure | 2 | ||||
-rw-r--r-- | configure.in | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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) |