svn commit: r277825 - projects/clang360-import/share/mk
Dimitry Andric
dim at FreeBSD.org
Wed Jan 28 07:29:40 UTC 2015
Author: dim
Date: Wed Jan 28 07:29:38 2015
New Revision: 277825
URL: https://svnweb.freebsd.org/changeset/base/277825
Log:
Disable the new -Wunused-local-typedef warning for WARNS <= 3, since it
triggers way too many times for the version of libc++ we have in base at
this point. While here, fix the compiler version check for
-Wno-unused-const-variable.
Modified:
projects/clang360-import/share/mk/bsd.sys.mk
Modified: projects/clang360-import/share/mk/bsd.sys.mk
==============================================================================
--- projects/clang360-import/share/mk/bsd.sys.mk Wed Jan 28 04:51:14 2015 (r277824)
+++ projects/clang360-import/share/mk/bsd.sys.mk Wed Jan 28 07:29:38 2015 (r277825)
@@ -68,13 +68,16 @@ CWARNFLAGS+= -Wno-pointer-sign
# is set to low values, these have to be disabled explicitly.
.if ${WARNS} <= 6
CWARNFLAGS.clang+= -Wno-empty-body -Wno-string-plus-int
-.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} > 30300
+.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 30400
CWARNFLAGS.clang+= -Wno-unused-const-variable
.endif
.endif # WARNS <= 6
.if ${WARNS} <= 3
CWARNFLAGS.clang+= -Wno-tautological-compare -Wno-unused-value\
-Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion
+.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 30600
+CWARNFLAGS.clang+= -Wno-unused-local-typedef
+.endif
.endif # WARNS <= 3
.if ${WARNS} <= 2
CWARNFLAGS.clang+= -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter
More information about the svn-src-projects
mailing list