The branch main has been updated by jhb:

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

commit 6c08fd3dc804c9c3064add3b9a6ff678a541d210
Author:     John Baldwin <[email protected]>
AuthorDate: 2023-05-25 14:11:38 +0000
Commit:     John Baldwin <[email protected]>
CommitDate: 2023-05-25 14:11:38 +0000

    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
---
 sys/conf/kern.mk | 3 +--
 1 file changed, 1 insertion(+), 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

Reply via email to