diff options
author | Steven Noonan <steven@uplinklabs.net> | 2009-10-12 04:44:11 -0700 |
---|---|---|
committer | Steven Noonan <steven@uplinklabs.net> | 2009-10-12 04:44:11 -0700 |
commit | 724409aaf9b6b236fcf9dd760c44cffca88ae331 (patch) | |
tree | 1d8428e37e4dd385c68914b4d031d057842a51e7 | |
parent | 7c2d63074deda60c524bd42a3aa6fa2e796e4d50 (diff) | |
download | crawl-ref-724409aaf9b6b236fcf9dd760c44cffca88ae331.tar.gz crawl-ref-724409aaf9b6b236fcf9dd760c44cffca88ae331.zip |
makefile: kill annoying 'Wuninitialized not supported without -O' warning
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
-rw-r--r-- | crawl-ref/source/makefile | 2 |
1 files changed, 2 insertions, 0 deletions
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))"' |