summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/makefile
diff options
context:
space:
mode:
authorSteven Noonan <steven@uplinklabs.net>2009-10-12 04:44:11 -0700
committerSteven Noonan <steven@uplinklabs.net>2009-10-12 04:44:11 -0700
commit724409aaf9b6b236fcf9dd760c44cffca88ae331 (patch)
tree1d8428e37e4dd385c68914b4d031d057842a51e7 /crawl-ref/source/makefile
parent7c2d63074deda60c524bd42a3aa6fa2e796e4d50 (diff)
downloadcrawl-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>
Diffstat (limited to 'crawl-ref/source/makefile')
-rw-r--r--crawl-ref/source/makefile2
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))"'