Makefile.boot: Make -Wno-typedef-redefinition Clang-specific
GCC doesn't have this warning and so also doesn't have the flag to disable it, resulting in it spewing a bunch of warnings about the command line option being unrecognised. MFC after: 1 week
This commit is contained in:
parent
339ef82773
commit
05066fad68
@ -37,7 +37,7 @@ CFLAGS+= -Werror=implicit-function-declaration -Werror=implicit-int \
|
|||||||
CFLAGS+= -DHAVE_NBTOOL_CONFIG_H=1
|
CFLAGS+= -DHAVE_NBTOOL_CONFIG_H=1
|
||||||
CFLAGS+= -I${SRCTOP}/tools/build/cross-build/include/common
|
CFLAGS+= -I${SRCTOP}/tools/build/cross-build/include/common
|
||||||
# This is needed for code that compiles for pre-C11 C standards
|
# This is needed for code that compiles for pre-C11 C standards
|
||||||
CWARNFLAGS+= -Wno-typedef-redefinition
|
CWARNFLAGS.clang+=-Wno-typedef-redefinition
|
||||||
# bsd.sys.mk explicitly turns on -Wsystem-headers, but that's extremely
|
# bsd.sys.mk explicitly turns on -Wsystem-headers, but that's extremely
|
||||||
# noisy when building on Linux.
|
# noisy when building on Linux.
|
||||||
CWARNFLAGS+= -Wno-system-headers
|
CWARNFLAGS+= -Wno-system-headers
|
||||||
|
Loading…
x
Reference in New Issue
Block a user