sys: Use gnu17 as the default C standard for the kernel

Reviewed by:	jhb
Differential Revision:	https://reviews.freebsd.org/D43239
This commit is contained in:
Minsoo Choo 2024-12-12 22:56:05 -05:00 committed by John Baldwin
parent ca4eddea97
commit 3a98d5701c

View file

@ -367,7 +367,7 @@ PHONY_NOTMAIN = afterdepend afterinstall all beforedepend beforeinstall \
.PHONY: ${PHONY_NOTMAIN}
.NOTMAIN: ${PHONY_NOTMAIN}
CSTD?= gnu99
CSTD?= gnu17
# c99/gnu99 is the minimum C standard version supported for kernel build
.if ${CSTD} == "k&r" || ${CSTD} == "c89" || ${CSTD} == "c90" || \