Date: Fri, 25 Oct 2013 01:10:07 +0000 (UTC) From: Sean Bruno <sbruno@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r257085 - head/contrib/gperf/src Message-ID: <201310250110.r9P1A7Kw018712@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310250110.r9P1A7Kw018712>