git: 05066fad68f0 - main - Makefile.boot: Make -Wno-typedef-redefinition Clang-specific
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 06 Dec 2021 19:17:00 UTC
The branch main has been updated by jrtc27:
URL: https://cgit.FreeBSD.org/src/commit/?id=05066fad68f03f0f7cf602924dd35ee327bf2b2d
commit 05066fad68f03f0f7cf602924dd35ee327bf2b2d
Author: Jessica Clarke <jrtc27@FreeBSD.org>
AuthorDate: 2021-12-06 19:12:46 +0000
Commit: Jessica Clarke <jrtc27@FreeBSD.org>
CommitDate: 2021-12-06 19:16:26 +0000
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
---
tools/build/mk/Makefile.boot | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/build/mk/Makefile.boot b/tools/build/mk/Makefile.boot
index 7ebbf726e7f2..317f1816dbea 100644
--- a/tools/build/mk/Makefile.boot
+++ b/tools/build/mk/Makefile.boot
@@ -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