Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102803304
D44145.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
697 B
Referenced Files
None
Subscribers
None
D44145.diff
View Options
diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk
--- a/sys/conf/kern.mk
+++ b/sys/conf/kern.mk
@@ -276,14 +276,10 @@
CSTD?= gnu17
-.if ${CSTD} == "k&r"
-CFLAGS+= -traditional
-.elif ${CSTD} == "c89" || ${CSTD} == "c90"
-CFLAGS+= -std=iso9899:1990
-.elif ${CSTD} == "c94" || ${CSTD} == "c95"
-CFLAGS+= -std=iso9899:199409
-.elif ${CSTD} == "c99"
-CFLAGS+= -std=iso9899:1999
+# c99/gnu99 is the minimum C standard version supported for kernel build
+.if ${CSTD} == "k&r" || ${CSTD} == "c89" || ${CSTD} == "c90" || \
+ ${CSTD} == "c94" || ${CSTD} == "c95"
+.error "Only c99/gnu99 or later is supported"
.else # CSTD
CFLAGS+= -std=${CSTD}
.endif # CSTD
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 9:32 AM (20 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14695420
Default Alt Text
D44145.diff (697 B)
Attached To
Mode
D44145: Disable C standards under C99 from kernel build
Attached
Detach File
Event Timeline
Log In to Comment