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".