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 at daikokuya dot co dot uk>
- To: Joern Rennecke <joern dot rennecke at superh dot com>
- Cc: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 24 Jul 2002 00:11:39 +0100
- Subject: Re: -Wunused-macros
- References: <3D3DDAD0.EF2C92F8@superh.com>
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.