Add a __nowarn__ keyword

Manuel López-Ibáñez lopezibanez@gmail.com
Mon Nov 23 16:40:00 GMT 2009


It is not clear how we want to implement this: as a pragma, as an
attribute or a special keyword similar to __extension__. (Although the
pragma was the clear winner last time I looked at this). Each of those
have benefits and disadvantages. It depends what you actually want to
do with it, and also their actual capabilities and shortcomings depend
on current limitations of the diagnostics machinery. On the bright
side, recent changes to the diagnostics machinery and accuracy of
location information probably have improved the situation.

I guess also that people involved had better things to do, and there
has not been a lot of interest from users. We don't even know whether
people are using the current "#pragma GCC diagnostic" interface. In
any case, GCC 4.5 is in bug-fixing mode, so this would have to wait
until GCC 4.6.

If you wish to speed up things, take the lastest patch [*], update it
to current trunk and start testing it. You may consider submit it
yourself once 4.5 is released: http://gcc.gnu.org/contribute.html

Cheers,

Manuel.

[*] http://gcc.gnu.org/ml/gcc-patches/2007-08/msg00702.html

2009/11/21 Magnus Fromreide <magfr@lysator.liu.se>:
> Whatever happened to the #pragma GCC diagnostic push/pop patch? From the
> mailing list it sounded as if it was destined to be added but then
> everything just disappeared.
>
> /MF (Interested end user wanting to disable a warning in a stupid
>     interface temporarily)
>
>



More information about the Gcc-patches mailing list