[Bug c/59304] #pragma diagnostic pop after warning fails for options unspecified in the command-line and disabled by default
manu at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Nov 28 01:41:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59304
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|#pragma diagnostic pop |#pragma diagnostic pop
|fails with -Wswitch-enum |after warning fails for
| |options unspecified in the
| |command-line and disabled
| |by default
--- Comment #4 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
We could undo back to the command-line just reseting variables mentioned in the
classification history up to the POP. But this might be fragile (the pragma
diagnostics warning uses handle_generated_option, which does a lot of extra
work) and also it does not work with variables that enable other variables
like: "-Wall".
More information about the Gcc-bugs
mailing list