Update CWARNFLAGS in bsd.sys.mk and CWARNEXTRA in kern.mk for clang 15.
MFC after: 3 days
This commit is contained in:
parent
f126d34981
commit
526f57bf85
@ -49,8 +49,11 @@ CWARNFLAGS+= -Werror
|
|||||||
CWARNFLAGS+= -Wall -Wno-format-y2k
|
CWARNFLAGS+= -Wall -Wno-format-y2k
|
||||||
.endif # WARNS >= 2
|
.endif # WARNS >= 2
|
||||||
.if ${WARNS} >= 3
|
.if ${WARNS} >= 3
|
||||||
CWARNFLAGS+= -W -Wno-unused-parameter -Wstrict-prototypes\
|
CWARNFLAGS+= -W -Wno-unused-parameter
|
||||||
-Wmissing-prototypes -Wpointer-arith
|
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} < 150000
|
||||||
|
CWARNFLAGS+= -Wstrict-prototypes
|
||||||
|
.endif
|
||||||
|
CWARNFLAGS+= -Wmissing-prototypes -Wpointer-arith
|
||||||
.endif # WARNS >= 3
|
.endif # WARNS >= 3
|
||||||
.if ${WARNS} >= 4
|
.if ${WARNS} >= 4
|
||||||
CWARNFLAGS+= -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow\
|
CWARNFLAGS+= -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow\
|
||||||
@ -59,6 +62,11 @@ CWARNFLAGS+= -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow\
|
|||||||
CWARNFLAGS+= -Wcast-align
|
CWARNFLAGS+= -Wcast-align
|
||||||
.endif # !NO_WCAST_ALIGN !NO_WCAST_ALIGN.${COMPILER_TYPE}
|
.endif # !NO_WCAST_ALIGN !NO_WCAST_ALIGN.${COMPILER_TYPE}
|
||||||
.endif # WARNS >= 4
|
.endif # WARNS >= 4
|
||||||
|
.if ${WARNS} >= 5
|
||||||
|
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150000
|
||||||
|
CWARNFLAGS+= -Wstrict-prototypes
|
||||||
|
.endif
|
||||||
|
.endif # WARNS >= 4
|
||||||
.if ${WARNS} >= 6
|
.if ${WARNS} >= 6
|
||||||
CWARNFLAGS+= -Wchar-subscripts -Wnested-externs \
|
CWARNFLAGS+= -Wchar-subscripts -Wnested-externs \
|
||||||
-Wold-style-definition
|
-Wold-style-definition
|
||||||
@ -86,6 +94,11 @@ CWARNFLAGS.clang+= -Wno-unused-const-variable
|
|||||||
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 130000
|
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 130000
|
||||||
CWARNFLAGS.clang+= -Wno-error=unused-but-set-variable
|
CWARNFLAGS.clang+= -Wno-error=unused-but-set-variable
|
||||||
.endif
|
.endif
|
||||||
|
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150000
|
||||||
|
CWARNFLAGS.clang+= -Wno-error=array-parameter
|
||||||
|
CWARNFLAGS.clang+= -Wno-error=deprecated-non-prototype
|
||||||
|
CWARNFLAGS.clang+= -Wno-error=unused-but-set-parameter
|
||||||
|
.endif
|
||||||
.endif # WARNS <= 6
|
.endif # WARNS <= 6
|
||||||
.if ${WARNS} <= 3
|
.if ${WARNS} <= 3
|
||||||
CWARNFLAGS.clang+= -Wno-tautological-compare -Wno-unused-value\
|
CWARNFLAGS.clang+= -Wno-tautological-compare -Wno-unused-value\
|
||||||
|
@ -45,6 +45,10 @@ CWARNEXTRA?= -Wno-error=tautological-compare -Wno-error=empty-body \
|
|||||||
-Wno-error=pointer-sign
|
-Wno-error=pointer-sign
|
||||||
CWARNEXTRA+= -Wno-error=shift-negative-value
|
CWARNEXTRA+= -Wno-error=shift-negative-value
|
||||||
CWARNEXTRA+= -Wno-address-of-packed-member
|
CWARNEXTRA+= -Wno-address-of-packed-member
|
||||||
|
.if ${COMPILER_VERSION} >= 150000
|
||||||
|
CWARNEXTRA+= -Wno-error=array-parameter
|
||||||
|
CWARNEXTRA+= -Wno-error=deprecated-non-prototype
|
||||||
|
.endif
|
||||||
.endif # clang
|
.endif # clang
|
||||||
|
|
||||||
.if ${COMPILER_TYPE} == "gcc"
|
.if ${COMPILER_TYPE} == "gcc"
|
||||||
|
Loading…
Reference in New Issue
Block a user