Cheap quick hack for ignoring #pragma to EOL

This commit is contained in:
Dale Weiler 2013-09-25 15:35:18 -04:00
parent 904c45060b
commit 894e1976e3

View file

@ -3299,7 +3299,13 @@ static bool parse_pragma_do(parser_t *parser)
else
{
(void)!parsewarning(parser, WARN_UNKNOWN_PRAGMAS, "ignoring #pragma %s", parser_tokval(parser));
return false;
/* skip to eol */
while (!parse_eol(parser)) {
parser_next(parser);
}
return true;
}
return true;