Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jan 2015 07:29:39 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r277825 - projects/clang360-import/share/mk
Message-ID:  <201501280729.t0S7Td0L063818@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501280729.t0S7Td0L063818>