From owner-svn-src-head@FreeBSD.ORG Fri Oct 25 01:10:07 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A41EBF0B; Fri, 25 Oct 2013 01:10:07 +0000 (UTC) (envelope-from sbruno@FreeBSD.org) 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)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 91F7E2C98; Fri, 25 Oct 2013 01:10:07 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r9P1A7B0018713; Fri, 25 Oct 2013 01:10:07 GMT (envelope-from sbruno@svn.freebsd.org) Received: (from sbruno@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r9P1A7Kw018712; Fri, 25 Oct 2013 01:10:07 GMT (envelope-from sbruno@svn.freebsd.org) Message-Id: <201310250110.r9P1A7Kw018712@svn.freebsd.org> From: Sean Bruno Date: Fri, 25 Oct 2013 01:10:07 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r257085 - head/contrib/gperf/src X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Oct 2013 01:10:07 -0000 Author: sbruno Date: Fri Oct 25 01:10:07 2013 New Revision: 257085 URL: http://svnweb.freebsd.org/changeset/base/257085 Log: Queisce quite a few clang warnings -Wdangling-else due to this work around for compiling gperf under Visual Studio from 1998. ref. http://msdn.microsoft.com/en-us/library/b80153d8%28v=vs.90%29.aspx ref. http://stackoverflow.com/questions/984878/what-is-the-possible-use-for-define-for-if-false-else-for Modified: head/contrib/gperf/src/search.cc Modified: head/contrib/gperf/src/search.cc ============================================================================== --- head/contrib/gperf/src/search.cc Fri Oct 25 01:02:25 2013 (r257084) +++ head/contrib/gperf/src/search.cc Fri Oct 25 01:10:07 2013 (r257085) @@ -36,7 +36,10 @@ /* ============================== Portability ============================== */ /* Assume ISO C++ 'for' scoping rule. */ -#define for if (0) ; else for +/* This code is used to work around scoping issues with visual studio 6 from + * 1998. Comment it out here to queisce numerous -Wdangling-else warnings + * from clang. +#define for if (0) ; else for */ /* Dynamically allocated array with dynamic extent: