This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: how to warn on unused preprocessor defines...
- From: "John (Eljay) Love-Jensen" <eljay at adobe dot com>
- To: "Marc Weber" <marco-oweber at gmx dot de>, <gcc-help at gcc dot gnu dot org>
- Date: Fri, 11 Jan 2008 04:14:35 -0800
- Subject: RE: how to warn on unused preprocessor defines...
- References: <20080111112519.GA17429@gmx.de>
> If it's the second case you can use a simple tool such as grep to get a list of all defines (filter ^#define ..)
Or use the preprocessor to generate the list of #define for you:
gcc -E -dM Foo.c | sort > Foo.dM
HTH,
--Eljay