This is the mail archive of the gcc-patches@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: -Wunused-macros


Joern Rennecke wrote:-

> > not expanded.  Slightly pathological, I know, but consider
> 
> > #define foo
> > #undef foo
> 
> > Here I report foo as unused, but if I use a hash table lookup to mark
> 
> I'd say that is sufficient reason not to want this warning for
> -Wall or gcc bootstraps.
> It is quite common to have une config file define a macro, and override
> it in another config file.

Nope, this warning doesn't apply to header files.  Obviously that would
be silly.

Neil.


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