https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53431

--- Comment #14 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Jeffrey Walton from comment #13)
> #if GCC_DIAGNOSTIC_AWARE
> # pragma GCC diagnostic push
> # pragma GCC diagnostic ignored "-Wunused-value"
> # pragma GCC diagnostic ignored "-Wunused-variable"
> #endif

As far as I understand, the #pragma should work as expected for those two
warnings. Only those warnings given during preprocessing and lexing are
affected by this bug.

Reply via email to