Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108056643
D34537.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
785 B
Referenced Files
None
Subscribers
None
D34537.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
@@ -28,6 +28,9 @@
.if ${COMPILER_VERSION} >= 100000
NO_WMISLEADING_INDENTATION= -Wno-misleading-indentation
.endif
+.if ${COMPILER_VERSION} >= 130000
+NO_WUNUSED_BUT_SET_VARIABLE= -Wno-unused-but-set-variable
+.endif
.if ${COMPILER_VERSION} >= 140000
NO_WBITWISE_INSTEAD_OF_LOGICAL= -Wno-bitwise-instead-of-logical
.endif
@@ -90,10 +93,6 @@
FORMAT_EXTENSIONS= -Wno-format
.elif ${COMPILER_TYPE} == "clang"
FORMAT_EXTENSIONS= -D__printf__=__freebsd_kprintf__
-# Only newer versions of clang have -Wno-unused-but-set-variable
-.if ${COMPILER_VERSION} >= 130000
-NO_WUNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
-.endif
.else
FORMAT_EXTENSIONS= -fformat-extensions
.endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 21, 11:57 PM (20 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16022070
Default Alt Text
D34537.diff (785 B)
Attached To
Mode
D34537: Move NO_WUNUSED_BUT_SET_VARIABLE clang helper to the right place.
Attached
Detach File
Event Timeline
Log In to Comment