aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2023-04-25 21:09:21 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2023-04-25 21:09:21 +0000
commit7aab8fc5c5f0f26e494be3bc05c58cf38687cf69 (patch)
tree407815d849d6d31a138925fb477b6d099fa0cd40
parent82bc33d5ad2e00179ea7026c496a35b00550da15 (diff)
downloadsrc-7aab8fc5c5f0f26e494be3bc05c58cf38687cf69.tar.gz
src-7aab8fc5c5f0f26e494be3bc05c58cf38687cf69.zip
clang: Enable -Wdeprecated-non-prototype by default.
PR: 270919 (exp-run) Reviewed by: dim, emaste Differential Revision: https://reviews.freebsd.org/D39535
-rw-r--r--share/mk/bsd.sys.mk1
-rw-r--r--sys/conf/kern.mk5
2 files changed, 2 insertions, 4 deletions
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index 19f92d8f9d5d..8141ed0661d1 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -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
diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk
index 06fb48d0f93f..1a1251f670e1 100644
--- a/sys/conf/kern.mk
+++ b/sys/conf/kern.mk
@@ -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