aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2023-05-25 14:11:38 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2023-05-25 14:11:38 +0000
commit6c08fd3dc804c9c3064add3b9a6ff678a541d210 (patch)
tree13e5988862cad70be43f6a8fe6a824028afce1e1
parent3dad1c6696d2b86d7c4662b509f09b91f7f1aed4 (diff)
downloadsrc-6c08fd3dc804c9c3064add3b9a6ff678a541d210.tar.gz
src-6c08fd3dc804c9c3064add3b9a6ff678a541d210.zip
Enable -Wstrict-prototypes by default in the kernel for clang 15+.
PR: 271072 (exp-run) Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39734
-rw-r--r--sys/conf/kern.mk3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk
index 30f7fdbc869a..be7e452bb6e3 100644
--- a/sys/conf/kern.mk
+++ b/sys/conf/kern.mk
@@ -48,9 +48,8 @@ CWARNEXTRA+= -Wno-error=shift-negative-value
CWARNEXTRA+= -Wno-address-of-packed-member
.if ${COMPILER_VERSION} >= 150000
# Clang 15 has much more aggressive diagnostics about
-# mismatched prototypes and unused-but-set variables. Make these
+# unused-but-set variables. Make these
# non-fatal for the time being.
-CWARNEXTRA+= -Wno-error=strict-prototypes
CWARNEXTRA+= -Wno-error=unused-but-set-variable
.endif
.endif # clang