summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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))"'