From: mert0407 AT sable DOT ox DOT ac DOT uk (George Foot) Newsgroups: comp.os.msdos.djgpp Subject: Re: v2 funnies Date: Fri, 06 Dec 1996 00:24:49 GMT Organization: Oxford University Lines: 16 Message-ID: <32a7674d.11527979@news.ox.ac.uk> References: <1119426E71 AT fs2 DOT mt DOT umist DOT ac DOT uk> NNTP-Posting-Host: mc31.merton.ox.ac.uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp On Thu, 5 Dec 1996 11:41:29 GMT, "A.Appleyard" 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