mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-12-18 00:11:06 +00:00
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*
This commit is contained in:
parent
5f9f6c11b8
commit
9fffb3441c
1 changed files with 11 additions and 9 deletions
20
Makefile
20
Makefile
|
@ -16,15 +16,17 @@ endif
|
||||||
#turn on tons of warnings if clang is present
|
#turn on tons of warnings if clang is present
|
||||||
# but also turn off the STUPID ONES
|
# but also turn off the STUPID ONES
|
||||||
ifeq ($(CC), clang)
|
ifeq ($(CC), clang)
|
||||||
CFLAGS += \
|
CFLAGS += \
|
||||||
-Weverything \
|
-Weverything \
|
||||||
-Wno-padded \
|
-Wno-padded \
|
||||||
-Wno-format-nonliteral \
|
-Wno-format-nonliteral \
|
||||||
-Wno-disabled-macro-expansion \
|
-Wno-disabled-macro-expansion \
|
||||||
-Wno-conversion \
|
-Wno-conversion \
|
||||||
-Wno-missing-prototypes \
|
-Wno-missing-prototypes \
|
||||||
-Wno-float-equal \
|
-Wno-float-equal \
|
||||||
-Wno-cast-align
|
-Wno-cast-align \
|
||||||
|
-Wno-missing-variable-declarations \
|
||||||
|
-Wno-unknown-warning-option
|
||||||
else
|
else
|
||||||
#Tiny C Compiler doesn't know what -pedantic-errors is
|
#Tiny C Compiler doesn't know what -pedantic-errors is
|
||||||
# and instead of ignoring .. just errors.
|
# and instead of ignoring .. just errors.
|
||||||
|
|
Loading…
Reference in a new issue