This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: Named warnings


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]