mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
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
This commit is contained in:
parent
baa09f1891
commit
29ef2f0e31
1 changed files with 4 additions and 1 deletions
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue