how to warn on unused preprocessor defines...

John (Eljay) Love-Jensen eljay@adobe.com
Sat Jan 12 22:34:00 GMT 2008


> 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



More information about the Gcc-help mailing list