Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 3cab8bd

Browse files
committed
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.
1 parent 9650830 commit 3cab8bd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

configure

+1-1
Original file line numberDiff line numberDiff line change
@@ -3601,7 +3601,7 @@ fi
36013601
# ICC pretends to be GCC but it's lying; it doesn't support these options.
36023602

36033603
if test "$GCC" = yes -a "$ICC" = no; then
3604-
CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith -Winline"
3604+
CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
36053605
# These work in some but not all gcc versions
36063606
{ echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
36073607
echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6; }

configure.in

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dnl Process this file with autoconf to produce a configure script.
2-
dnl $PostgreSQL: pgsql/configure.in,v 1.563 2008/06/27 00:36:16 tgl Exp $
2+
dnl $PostgreSQL: pgsql/configure.in,v 1.564 2008/08/19 19:17:40 tgl Exp $
33
dnl
44
dnl Developers, please strive to achieve this order:
55
dnl
@@ -391,7 +391,7 @@ fi
391391
# ICC pretends to be GCC but it's lying; it doesn't support these options.
392392

393393
if test "$GCC" = yes -a "$ICC" = no; then
394-
CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith -Winline"
394+
CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
395395
# These work in some but not all gcc versions
396396
PGAC_PROG_CC_CFLAGS_OPT([-Wdeclaration-after-statement])
397397
PGAC_PROG_CC_CFLAGS_OPT([-Wendif-labels])

0 commit comments

Comments
 (0)