aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNeil Conway <neilc@samurai.com>2004-10-20 02:12:07 +0000
committerNeil Conway <neilc@samurai.com>2004-10-20 02:12:07 +0000
commit857e210ea9dd3488c26356901301a3f466f7dbbf (patch)
treeea510dd6919d7e72bfc5d228525f7a965e589bfd /src
parenta1bc728cf92c0df4477d80ff845c6e81d2ccf501 (diff)
downloadpostgresql-857e210ea9dd3488c26356901301a3f466f7dbbf.tar.gz
postgresql-857e210ea9dd3488c26356901301a3f466f7dbbf.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.global.in5
1 files changed, 1 insertions, 4 deletions
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