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
This commit is contained in:
parent
3dad1c6696
commit
6c08fd3dc8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user