This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: Named warnings
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Stan Shebs <shebs at apple dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: 24 Jan 2003 16:04:57 -0200
- Subject: Re: RFC: Named warnings
- Organization: GCC Team, Red Hat
- References: <3E309188.1060508@apple.com>
On Jan 23, 2003, Stan Shebs <shebs@apple.com> wrote:
> int fn() __attribute__ ((warning ("no-sign-compare", "switch")))
> {
> ...
> }
We can use _Pragma for that as well, I suppose. It's not clear to me
that using attributes and pragmas isn't redundant. One thing that
would definitely be nice is to be able to limit warnings to
expressions, so that preprocessor macros that might trigger unwanted
warnings may have means to disable them. Something like we currently
use __extension__ for, maybe an extended version of that, such as
__extension__ __attribute__ ((warning ("..."))) (expression).
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer