how to remove Unused Varibale... :(

Hi,
I am facing a problem in my project.In my project, i have a lot of .C,.Cpp, and .H files.
the problem is that i want to know all unused data from my code.
at compile time i use gcc -Wall command to find all unused varibal and lot of information.
But still lots of things a missing As: unused #define , Unused structure object from header file.
Unused function declaration...

Please help me out....

Thanks,
Anand
There is no automatic way to do that.
i just want to find all that location.... :(
There's a commercial Lint for C++ called Gimpel Lint that will tell you that sort of thing and more.
thanks man...
could i use it with eclipse...
coz my ide is eclipse and i can compile my project outside eclipse.
coz my compiler embedded in eclipse....
Thanks a lot in advance...
Andy...
As I recall, it's run in the same way the compiler is. So it should be easy to integrate.

A word of warning, when you run it, it'll warn you about all sorts of things you hadn't thought of, some will be irrelevant. The key to using it is to turn off stuff where you're sure it's irrelevant in your case and fix your code where it is, rather than changing your code whenever it complains. Always remember you're writing in C++ (not lint). If you thought -Wall was pedantic, you ain't seen nothin' yet.
Topic archived. No new replies allowed.