Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108631751
D34948.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
894 B
Referenced Files
None
Subscribers
None
D34948.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
@@ -43,11 +43,7 @@
CWARNEXTRA+= -Wno-error=shift-negative-value
CWARNEXTRA+= -Wno-address-of-packed-member
.if ${COMPILER_VERSION} >= 130000
-.if ${MK_SET_BUT_NOTUSED_KERNEL_WARNINGS} == "no"
-CWARNEXTRA+= ${NO_WUNUSED_BUT_SET_VARIABLE}
-.else
-CWARNEXTRA+= -Wno-error=unused-but-set-variable
-.endif
+CWARNFLAGS+= -Wno-error=unused-but-set-variable
.endif
.endif # clang
diff --git a/sys/conf/kern.opts.mk b/sys/conf/kern.opts.mk
--- a/sys/conf/kern.opts.mk
+++ b/sys/conf/kern.opts.mk
@@ -60,8 +60,7 @@
INIT_ALL_ZERO \
KERNEL_RETPOLINE \
RATELIMIT \
- REPRODUCIBLE_BUILD \
- SET_BUT_NOTUSED_KERNEL_WARNINGS
+ REPRODUCIBLE_BUILD
# Some options are totally broken on some architectures. We disable
# them. If you need to enable them on an experimental basis, you
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 28, 12:07 AM (9 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16225651
Default Alt Text
D34948.diff (894 B)
Attached To
Mode
D34948: Re-enable set but not used warnings for kernel builds.
Attached
Detach File
Event Timeline
Log In to Comment