git: 29665d68e254 - stable/13 - Makefile.boot: Make -Wno-typedef-redefinition Clang-specific

From: Jessica Clarke <jrtc27_at_FreeBSD.org>
Date: Tue, 25 Jan 2022 01:39:53 UTC
The branch stable/13 has been updated by jrtc27:

URL: https://cgit.FreeBSD.org/src/commit/?id=29665d68e254c2f0fd26add7c72d837aa07c4b72

commit 29665d68e254c2f0fd26add7c72d837aa07c4b72
Author:     Jessica Clarke <jrtc27@FreeBSD.org>
AuthorDate: 2021-12-06 19:12:46 +0000
Commit:     Jessica Clarke <jrtc27@FreeBSD.org>
CommitDate: 2022-01-24 23:59:02 +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
    
    (cherry picked from commit 05066fad68f03f0f7cf602924dd35ee327bf2b2d)
---
 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