[waffle] [PATCH] wflinfo: Fix MSVC compilation error.
jfonseca at vmware.com
Fri Jan 30 12:02:32 PST 2015
On 30/01/15 16:25, Emil Velikov wrote:
> On 30 January 2015 at 11:07, Jose Fonseca <jfonseca at vmware.com> wrote:
>> Workaround what seems to be a bug in MSVC parser for C99.
> Should have spotted this a Frank sent out the patch. Sorry about this Jose.
> Reviewed-by: Emil Velikov <emil.l.velikov at gmail.com>
> Wondering if we should (as a follow up commit) move the variable
> declarations prior to the code to avoid such fun in the future ?
It's hard to say.
It looks like MSVC allows declarations in the middle of blocks, but the
parser gets into a wierd state some times.
I think the surer way long term would be to report the MSVC bug to
Microsoft. There have been positive experiences in the past  
More information about the waffle