This is the mail archive of the gcc-help@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: how to warn on unused preprocessor defines...


> 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


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