diff options
| author | Tom Lane | 2005-10-05 17:11:45 +0000 |
|---|---|---|
| committer | Tom Lane | 2005-10-05 17:11:45 +0000 |
| commit | 93d358a8a4442358c3edccf53014d8a2e65a5bbe (patch) | |
| tree | e0d9b33b7e58c317899e312b9207d866f5048553 /configure.in | |
| parent | a5fecda550c6a2d9422cf8b995ccb9ccd8bb47c8 (diff) | |
Add -Winline to the default CFLAGS for gcc, and remove
-Wold-style-definition, per recent discussion.
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/configure.in b/configure.in index 73527572512..7a70051728f 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,5 @@ dnl Process this file with autoconf to produce a configure script. -dnl $PostgreSQL: pgsql/configure.in,v 1.426 2005/09/16 17:15:53 pgsql Exp $ +dnl $PostgreSQL: pgsql/configure.in,v 1.427 2005/10/05 17:11:45 tgl Exp $ dnl dnl Developers, please strive to achieve this order: dnl @@ -251,12 +251,11 @@ else fi if test "$GCC" = yes; then - CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith" + CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith -Winline" # Some versions of GCC support some additional useful warning flags. # Check whether they are supported, and add them to CFLAGS if so. PGAC_PROG_CC_CFLAGS_OPT([-Wdeclaration-after-statement]) - PGAC_PROG_CC_CFLAGS_OPT([-Wold-style-definition]) PGAC_PROG_CC_CFLAGS_OPT([-Wendif-labels]) # Disable strict-aliasing rules; needed for gcc 3.3+ |
