From 857e210ea9dd3488c26356901301a3f466f7dbbf Mon Sep 17 00:00:00 2001 From: Neil Conway Date: Wed, 20 Oct 2004 02:12:07 +0000 Subject: When using GCC, change the default CFLAGS to: -O2 -Wall -Wmissing-prototypes -Wpointer-arith Check whether the version of GCC we are using supports any of: -Wdeclaration-after-statement -Wendif-labels -Wold-style-definition And add the supported flags to CFLAGS. --- src/Makefile.global.in | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') diff --git a/src/Makefile.global.in b/src/Makefile.global.in index 467575bdaba..02c32de3a0f 100644 --- a/src/Makefile.global.in +++ b/src/Makefile.global.in @@ -1,5 +1,5 @@ # -*-makefile-*- -# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.203 2004/10/15 17:10:58 momjian Exp $ +# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.204 2004/10/20 02:12:07 neilc Exp $ #------------------------------------------------------------------------------ # All PostgreSQL makefiles include this file and use the variables it sets, @@ -184,9 +184,6 @@ endif # not PGXS CC = @CC@ GCC = @GCC@ CFLAGS = @CFLAGS@ -ifeq ($(GCC), yes) - CFLAGS += -Wall -Wmissing-prototypes -Wmissing-declarations -endif # Kind-of compilers -- cgit v1.2.3