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:
Jessica Clarke 2021-12-06 19:12:46 +00:00
parent 339ef82773
commit 05066fad68

View File

@ -37,7 +37,7 @@ CFLAGS+= -Werror=implicit-function-declaration -Werror=implicit-int \
CFLAGS+= -DHAVE_NBTOOL_CONFIG_H=1
CFLAGS+= -I${SRCTOP}/tools/build/cross-build/include/common
# 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
# noisy when building on Linux.
CWARNFLAGS+= -Wno-system-headers