From 724409aaf9b6b236fcf9dd760c44cffca88ae331 Mon Sep 17 00:00:00 2001 From: Steven Noonan Date: Mon, 12 Oct 2009 04:44:11 -0700 Subject: makefile: kill annoying 'Wuninitialized not supported without -O' warning Signed-off-by: Steven Noonan --- crawl-ref/source/makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crawl-ref/source/makefile') diff --git a/crawl-ref/source/makefile b/crawl-ref/source/makefile index db20c27845..b823ee11dd 100644 --- a/crawl-ref/source/makefile +++ b/crawl-ref/source/makefile @@ -371,11 +371,13 @@ CFWARN += -Winvalid-pch endif # Cygwin has a panic attack if we do this... +ifneq ($(OPTIMIZE),n) ifneq ($(UNAME_S),CYGWIN) CFWARN += -Wuninitialized else CFWARN += -Wno-uninitialized endif +endif ifneq ($(strip $(SAVEDIR)),) CFOTHERS += '-DSAVE_DIR_PATH="$(strip $(SAVEDIR))"' -- cgit v1.2.3-54-g00ecf