From: Dale Weiler Date: Wed, 30 Jan 2013 06:52:36 +0000 (+0000) Subject: Older clang had -Wmissing-variable-declarations, which causes a heap of warnings... X-Git-Tag: before-library~182 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9fffb3441c767472036e8be074a26ea86370c6d9;p=xonotic%2Fgmqcc.git Older clang had -Wmissing-variable-declarations, which causes a heap of warnings, we disable it, because it's a stupid warning. However, because it's unsupported in newer clang, disabling it causes a warning, so we need to -Wno-unknown-warning-option. *sigh* --- diff --git a/Makefile b/Makefile index 6e6c945..25828d1 100644 --- a/Makefile +++ b/Makefile @@ -16,15 +16,17 @@ endif #turn on tons of warnings if clang is present # but also turn off the STUPID ONES ifeq ($(CC), clang) - CFLAGS += \ - -Weverything \ - -Wno-padded \ - -Wno-format-nonliteral \ - -Wno-disabled-macro-expansion \ - -Wno-conversion \ - -Wno-missing-prototypes \ - -Wno-float-equal \ - -Wno-cast-align + CFLAGS += \ + -Weverything \ + -Wno-padded \ + -Wno-format-nonliteral \ + -Wno-disabled-macro-expansion \ + -Wno-conversion \ + -Wno-missing-prototypes \ + -Wno-float-equal \ + -Wno-cast-align \ + -Wno-missing-variable-declarations \ + -Wno-unknown-warning-option else #Tiny C Compiler doesn't know what -pedantic-errors is # and instead of ignoring .. just errors.