summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/Makefile
diff options
context:
space:
mode:
authorSamuel Bronson <naesten@gmail.com>2013-04-06 22:48:31 -0400
committerSamuel Bronson <naesten@gmail.com>2013-04-07 02:10:34 -0400
commite9144b097a982ac2c5dd6886939127450e0da172 (patch)
treec7650b4feea42325bda9f33e977902bceb6e1b0e /crawl-ref/source/Makefile
parentab36ef97559092ea7c0f759d7b305a084ba6bc4d (diff)
downloadcrawl-ref-e9144b097a982ac2c5dd6886939127450e0da172.tar.gz
crawl-ref-e9144b097a982ac2c5dd6886939127450e0da172.zip
Check that -Wmissing-declarations doesn't fail before using it
Diffstat (limited to 'crawl-ref/source/Makefile')
-rw-r--r--crawl-ref/source/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/Makefile b/crawl-ref/source/Makefile
index d1f244769c..df78ac3529 100644
--- a/crawl-ref/source/Makefile
+++ b/crawl-ref/source/Makefile
@@ -120,7 +120,7 @@ CFOPTIMIZE := -O2
endif # USE_ICC
CFOTHERS := -pipe $(EXTERNAL_FLAGS)
-CFWARN := -Wall -Wformat-security -Wmissing-declarations
+CFWARN := -Wall -Wformat-security
CFWARN_L := -Wundef
DEFINES := $(EXTERNAL_DEFINES)
@@ -689,6 +689,7 @@ endif # TILES
# On clang, unknown -Wfoo is merely a warning, thus -Werror.
CFWARN_L += $(shell w=-Wno-array-bounds;echo|$(GXX) -E - -Werror $$w >/dev/null 2>&1 && echo $$w)
+CFWARN += $(shell w=-Wmissing-declarations;echo|$(GXX) -E - -Werror $$w >/dev/null 2>&1 && echo $$w)
CFWARN_L += -Wno-parentheses -Wno-unused-parameter -Wwrite-strings -Wshadow
CFOTHERS_L = $(EXTERNAL_FLAGS_L) $(EXTRA_FLAGS) $(DEFINES) $(SDL_CFLAGS)