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

--- Comment #2 from Alejandro Colomar <colomar.6.4.3 at gmail dot com> ---
If I use

#pragma GCC diagnostic ignored "-Wconversion"

I will loose the warning.  I still want the warning, but not the error.
That's what I have right now as a workaround, but it's not what I want.

______

And this:

#pragma GCC diagnostic warning "-Wconversion"

hardcodes the warning.  I want to be able to enable or disable "-Wconversion"
in the command line.

______

There is no way to express that I want to enable or disable a warning/error at
command line, but that some part of the code should never be an error.

Reply via email to