diff options
author | Neil Moore <neil@s-z.org> | 2013-04-07 16:05:05 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2013-04-07 16:07:09 -0400 |
commit | d0928289126ef7a660cec11be4d78f937087e2a4 (patch) | |
tree | 94a04ffc2c3b8efdbc3303bc4e08b1f644e5ec30 /crawl-ref/source/Makefile | |
parent | 8784da81ba4f351bc852e94ef03c00abd45f7165 (diff) | |
download | crawl-ref-d0928289126ef7a660cec11be4d78f937087e2a4.tar.gz crawl-ref-d0928289126ef7a660cec11be4d78f937087e2a4.zip |
Specify C++ when testing for warning flags.
Because -E - doesn't know it's C++, and old gcc supported
-Wmissing-declarations in C but not C++.
Diffstat (limited to 'crawl-ref/source/Makefile')
-rw-r--r-- | crawl-ref/source/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/Makefile b/crawl-ref/source/Makefile index df78ac3529..46b6d932ac 100644 --- a/crawl-ref/source/Makefile +++ b/crawl-ref/source/Makefile @@ -688,8 +688,8 @@ INCLUDES_L += $(PNG_INCLUDE) $(FREETYPE_INCLUDE) $(SDL_INCLUDE) 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 += $(shell w=-Wno-array-bounds;echo|$(GXX) -E -x c++ - -Werror $$w >/dev/null 2>&1 && echo $$w) +CFWARN += $(shell w=-Wmissing-declarations;echo|$(GXX) -E -x c++ - -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) |