Skip to contentSkip to conversation

"WEIRD: weird #pragma" and not recovering

Cocci Michael Stefaniuc 1 participant 1 message Mar 3, 2015

lore
Share & tools
lore
#0 lore raw

Hello,

spatch --parse-c on
https://source.winehq.org/git/wine.git/blob_plain/HEAD:/include/windows.h
gives:

WEIRD: weird #pragma
WEIRD: weird #pragma
ERROR-RECOV: end of file while in recovery mode parsing pass2: try again
ERROR-RECOV: end of file while in recovery mode
parse error
= File "include/windows.h", line 24, column 2
4, charpos = 1006
around = ':', whole content = # pragma warning(disable:4116)

spatch never recovers from that error.

A description of that MSVC #pragma can be found at
https://msdn.microsoft.com/en-us/library/2c8f766e.aspx

thanks
bye
michael