summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/makefile
diff options
context:
space:
mode:
authorSteven Noonan <steven@uplinklabs.net>2009-10-17 06:31:23 -0700
committerSteven Noonan <steven@uplinklabs.net>2009-10-17 06:31:23 -0700
commit58889ea3d4d442940d5e76e5e039451f8f4a642c (patch)
tree6282f1a896b077d28d74c0e2ad1c0bc13419bb76 /crawl-ref/source/makefile
parent8f9e678d9eefd447e5758801f42d7eecaeadf9e9 (diff)
downloadcrawl-ref-58889ea3d4d442940d5e76e5e039451f8f4a642c.tar.gz
crawl-ref-58889ea3d4d442940d5e76e5e039451f8f4a642c.zip
makefile: add -Wno-uninitialized on < GCC 4.0
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Diffstat (limited to 'crawl-ref/source/makefile')
-rw-r--r--crawl-ref/source/makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/makefile b/crawl-ref/source/makefile
index f4565b3b55..12a4636d72 100644
--- a/crawl-ref/source/makefile
+++ b/crawl-ref/source/makefile
@@ -189,6 +189,7 @@ AR := $(CROSSHOST)-ar
RANLIB := $(CROSSHOST)-ranlib
endif
GCC_GTE_4_3_0 := $(shell util/gcc-gte.pl $(GCC) 4.3.0)
+GCC_GTE_4_0_0 := $(shell util/gcc-gte.pl $(GCC) 4.0.0)
RLTILES = rltiles
@@ -362,7 +363,7 @@ endif
# Cygwin has a panic attack if we do this...
ifndef NO_OPTIMIZE
-ifeq (,$(findstring CYGWIN,$(uname_S)))
+ifneq ($(GCC_GTE_4_0_0),No)
CFWARN_L += -Wuninitialized
else
CFWARN_L += -Wno-uninitialized