From 58889ea3d4d442940d5e76e5e039451f8f4a642c Mon Sep 17 00:00:00 2001 From: Steven Noonan Date: Sat, 17 Oct 2009 06:31:23 -0700 Subject: makefile: add -Wno-uninitialized on < GCC 4.0 Signed-off-by: Steven Noonan --- crawl-ref/source/makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/makefile') 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 -- cgit v1.2.3-54-g00ecf