Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jun 2021 19:26:35 GMT
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: a7ade2196244 - stable/13 - kern.mk: fix -Wno-error style to fix build with Clang 12
Message-ID:  <202106221926.15MJQZSw083634@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by dim:

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

commit a7ade2196244fa21bdee913fb9448d07e9f3760c
Author:     Greg V <greg@unrelenting.technology>
AuthorDate: 2021-03-10 22:17:09 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2021-06-22 19:20:39 +0000

    kern.mk: fix -Wno-error style to fix build with Clang 12
    
    Clang 12 no longer supports -Wno-error-..., only the -Wno-error=...
    style (which is already used everywhere else in the tree).
    
    Differential Revision:  https://reviews.freebsd.org/D29157
    
    (cherry picked from commit 15565e0a2177f53b086609fecd48991c52dad5eb)
---
 sys/conf/kern.mk | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk
index 3f14a42ab226..f8ea372b1d93 100644
--- a/sys/conf/kern.mk
+++ b/sys/conf/kern.mk
@@ -17,21 +17,21 @@ CWARNFLAGS?=	-Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \
 # kernel where fixing them is more trouble than it is worth, or where there is
 # a false positive.
 .if ${COMPILER_TYPE} == "clang"
-NO_WCONSTANT_CONVERSION=	-Wno-error-constant-conversion
+NO_WCONSTANT_CONVERSION=	-Wno-error=constant-conversion
 NO_WSHIFT_COUNT_NEGATIVE=	-Wno-shift-count-negative
 NO_WSHIFT_COUNT_OVERFLOW=	-Wno-shift-count-overflow
 NO_WSELF_ASSIGN=		-Wno-self-assign
-NO_WUNNEEDED_INTERNAL_DECL=	-Wno-error-unneeded-internal-declaration
-NO_WSOMETIMES_UNINITIALIZED=	-Wno-error-sometimes-uninitialized
-NO_WCAST_QUAL=			-Wno-error-cast-qual
+NO_WUNNEEDED_INTERNAL_DECL=	-Wno-error=unneeded-internal-declaration
+NO_WSOMETIMES_UNINITIALIZED=	-Wno-error=sometimes-uninitialized
+NO_WCAST_QUAL=			-Wno-error=cast-qual
 NO_WTAUTOLOGICAL_POINTER_COMPARE= -Wno-tautological-pointer-compare
 # Several other warnings which might be useful in some cases, but not severe
 # enough to error out the whole kernel build.  Display them anyway, so there is
 # some incentive to fix them eventually.
-CWARNEXTRA?=	-Wno-error-tautological-compare -Wno-error-empty-body \
-		-Wno-error-parentheses-equality -Wno-error-unused-function \
-		-Wno-error-pointer-sign
-CWARNEXTRA+=	-Wno-error-shift-negative-value
+CWARNEXTRA?=	-Wno-error=tautological-compare -Wno-error=empty-body \
+		-Wno-error=parentheses-equality -Wno-error=unused-function \
+		-Wno-error=pointer-sign
+CWARNEXTRA+=	-Wno-error=shift-negative-value
 CWARNEXTRA+=	-Wno-address-of-packed-member
 .if ${COMPILER_VERSION} >= 100000
 NO_WMISLEADING_INDENTATION=	-Wno-misleading-indentation



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106221926.15MJQZSw083634>