This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: -Wunused-macros
> From: Neil Booth <neil@daikokuya.co.uk>
>
> 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.
After all of your cleanups, how many of these warnings remain in the
gcc bootstrap?
--
Kaveh R. Ghazi Director of Systems Architecture
ghazi@caip.rutgers.edu Qwest Solutions