clang: Enable -Wdeprecated-non-prototype by default.

PR:		270919 (exp-run)
Reviewed by:	dim, emaste
Differential Revision:	https://reviews.freebsd.org/D39535
This commit is contained in:
John Baldwin 2023-04-25 14:09:21 -07:00
parent 82bc33d5ad
commit 7aab8fc5c5
2 changed files with 2 additions and 4 deletions

View File

@ -95,7 +95,6 @@ CWARNFLAGS.clang+= -Wno-unused-const-variable
CWARNFLAGS.clang+= -Wno-error=unused-but-set-variable
.endif
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150000
CWARNFLAGS.clang+= -Wno-error=deprecated-non-prototype
CWARNFLAGS.clang+= -Wno-error=unused-but-set-parameter
.endif
.endif # WARNS <= 6

View File

@ -47,10 +47,9 @@ CWARNEXTRA?= -Wno-error=tautological-compare -Wno-error=empty-body \
CWARNEXTRA+= -Wno-error=shift-negative-value
CWARNEXTRA+= -Wno-address-of-packed-member
.if ${COMPILER_VERSION} >= 150000
# Clang 15 has much more aggressive diagnostics about K&R prototypes,
# mismatched prototypes, and unused-but-set variables. Make these
# Clang 15 has much more aggressive diagnostics about
# mismatched prototypes and unused-but-set variables. Make these
# non-fatal for the time being.
CWARNEXTRA+= -Wno-error=deprecated-non-prototype
CWARNEXTRA+= -Wno-error=strict-prototypes
CWARNEXTRA+= -Wno-error=unused-but-set-variable
.endif