From: Tom Lane Date: Tue, 19 Aug 2008 19:17:40 +0000 (+0000) Subject: Remove -Winline from the default set of CFLAGS for gcc. It's gotten much X-Git-Tag: recoveryinfrav9~723 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=3e91f77dab930d279375c8e1eee5a41785188619;p=users%2Fsimon%2Fpostgres.git Remove -Winline from the default set of CFLAGS for gcc. It's gotten much too noisy to be useful as of gcc 4.3, and we were never really doing anything about inlining warnings anyway. --- diff --git a/configure b/configure index f6815d3b1c..cde00667b3 100755 --- a/configure +++ b/configure @@ -3601,7 +3601,7 @@ fi # ICC pretends to be GCC but it's lying; it doesn't support these options. if test "$GCC" = yes -a "$ICC" = no; then - CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith -Winline" + CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith" # These work in some but not all gcc versions { echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6; } diff --git a/configure.in b/configure.in index 95d33e40d2..b358e49c9d 100644 --- a/configure.in +++ b/configure.in @@ -391,7 +391,7 @@ fi # ICC pretends to be GCC but it's lying; it doesn't support these options. if test "$GCC" = yes -a "$ICC" = no; then - CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith -Winline" + CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith" # These work in some but not all gcc versions PGAC_PROG_CC_CFLAGS_OPT([-Wdeclaration-after-statement]) PGAC_PROG_CC_CFLAGS_OPT([-Wendif-labels])