From 93d358a8a4442358c3edccf53014d8a2e65a5bbe Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 5 Oct 2005 17:11:45 +0000 Subject: Add -Winline to the default CFLAGS for gcc, and remove -Wold-style-definition, per recent discussion. --- configure.in | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 7352757251..7a70051728 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+ -- cgit v1.2.1