From owner-svn-src-projects@FreeBSD.ORG Wed Jan 28 07:29:39 2015 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EADB1E61; Wed, 28 Jan 2015 07:29:39 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D73B87DF; Wed, 28 Jan 2015 07:29:39 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t0S7Tdwu063819; Wed, 28 Jan 2015 07:29:39 GMT (envelope-from dim@FreeBSD.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t0S7Td0L063818; Wed, 28 Jan 2015 07:29:39 GMT (envelope-from dim@FreeBSD.org) Message-Id: <201501280729.t0S7Td0L063818@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: dim set sender to dim@FreeBSD.org using -f From: Dimitry Andric Date: Wed, 28 Jan 2015 07:29:39 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r277825 - projects/clang360-import/share/mk X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jan 2015 07:29:40 -0000 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