Date: Mon, 6 Dec 2021 19:17:00 GMT From: Jessica Clarke <jrtc27@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 05066fad68f0 - main - Makefile.boot: Make -Wno-typedef-redefinition Clang-specific Message-ID: <202112061917.1B6JH0Yc007471@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112061917.1B6JH0Yc007471>