Mail Archives: djgpp/1996/12/06/04:31:14
On Thu, 5 Dec 1996 11:41:29 GMT, "A.Appleyard"
<A DOT APPLEYARD AT fs2 DOT mt DOT umist DOT ac DOT uk> wrote:
(1) Never noticed it, but I tend to use fopen instead of open...
> (2) How can I look through a big Gnu C++ program for unused functions and
>global variables? I was once advised to use NM, which I just did; but I could
>not see in its output anything that told me whether each symbol is ever
>referred to or not.
If you compile the program with -Wall (I think) it will point out
unused variables, and the lines they are declared on. You might also
need to turn on optimisations (e.g. -O2). Note that gcc will ignore
these unused parameters/variables anyway.
George Foot
- Raw text -