Suppressing "extra ';'" error in GCC when -pedantic is on
Posted
by Roman D
on Stack Overflow
See other posts from Stack Overflow
or by Roman D
Published on 2010-04-20T14:01:47Z
Indexed on
2010/04/20
14:03 UTC
Read the original article
Hit count: 330
Hi all,
I'm building my program with -pedantic
flag, which causes an extra ';'
error (because of a third-party header using a few macros inconsistently; the error is not shown when -pedantic
is off). I don't really feel like turning -pedantic
off, and neither do I want to edit the header. Is there any way to suppress this exact error? Like a -Wno-annoying-semicolon-error
compiler switch or something?
© Stack Overflow or respective owner