Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F164238653
D40663.id123559.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
868 B
Referenced Files
None
Subscribers
None
D40663.id123559.diff
View Options
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -116,6 +116,9 @@
${COMPILER_TYPE} == "gcc")
CWARNFLAGS+= -Wno-misleading-indentation
.endif # NO_WMISLEADING_INDENTATION
+.if ${COMPILER_VERSION} >= 130000
+NO_WUNUSED_BUT_SET_VARIABLE= -Wno-unused-but-set-variable
+.endif
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 140000
NO_WBITWISE_INSTEAD_OF_LOGICAL= -Wno-bitwise-instead-of-logical
.endif
@@ -124,6 +127,9 @@
NO_WSTRICT_PROTOTYPES= -Wno-strict-prototypes
NO_WDEPRECATED_NON_PROTOTYPE=-Wno-deprecated-non-prototype
.endif
+.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 50200
+NO_WUNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
+.endif
.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 100100
NO_WZERO_LENGTH_BOUNDS= -Wno-zero-length-bounds
.endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 30, 11:47 PM (9 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35758684
Default Alt Text
D40663.id123559.diff (868 B)
Attached To
Mode
D40663: bsd.sys.mk: Add NO_WUNUSED_BUT_SET_VARIABLE helper variable.
Attached
Detach File
Event Timeline
Log In to Comment