http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37187
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic Target|x86_64-linux-gnu | Host|x86_64-linux-gnu | Build|x86_64-linux-gnu | --- Comment #6 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2012-04-22 20:03:11 UTC --- In GCC 4.8, you can use -Wno-error=pedantic for any warning that prints -Wpedantic. However, the testcase here does not because of a bug. I will try to fix the bug, but this part of the C FE is quite complex (and it looks ancient...) -pedantic changes something in a global variable and later the pedwarn is conditional on this global variable, so depending on the testcase, the pedwarn may be conditional or not on -pedantic (without passing the correct OPT_ value). Not fun.