summaryrefslogtreecommitdiffstats
path: root/contrib/gperf/src
diff options
context:
space:
mode:
authorsbruno <sbruno@FreeBSD.org>2013-10-25 01:10:07 +0000
committersbruno <sbruno@FreeBSD.org>2013-10-25 01:10:07 +0000
commit99bb3328c368663d086115c58fd22f255518ea25 (patch)
tree16f63333c1b2e06df998b0091c95ce44f32334d0 /contrib/gperf/src
parentd4d55062e5033e9aef34ae822a3061ee22e76e03 (diff)
downloadFreeBSD-src-99bb3328c368663d086115c58fd22f255518ea25.zip
FreeBSD-src-99bb3328c368663d086115c58fd22f255518ea25.tar.gz
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
Diffstat (limited to 'contrib/gperf/src')
-rw-r--r--contrib/gperf/src/search.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/gperf/src/search.cc b/contrib/gperf/src/search.cc
index c245970..956b5be 100644
--- a/contrib/gperf/src/search.cc
+++ b/contrib/gperf/src/search.cc
@@ -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:
OpenPOWER on IntegriCloud