From: Erik Max Francis Newsgroups: comp.os.msdos.djgpp Subject: Re: A program to find all unused symbols in a C program Date: Thu, 27 Feb 1997 08:59:19 -0800 Organization: Alcyone Systems Lines: 21 Message-ID: <3315BD67.75C229F9@alcyone.com> References: <34DB2D72539 AT fs2 DOT mt DOT umist DOT ac DOT uk> <5f3oan$6ol AT flex DOT uunet DOT pipex DOT com> NNTP-Posting-Host: newton.alcyone.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp nikki wrote: > just a thought, but putting 'static' before global variables and > compiling > with -Wall will show unusued global variables too. as well as local > unused > ones. Those are static external, not external (e.g., global). The static qualifier before a variable definitions outside of any block means that the linkage is internal to that file. You can't reference it in another file. In other words, it's _not_ global across files if you do this. -- Erik Max Francis, &tSftDotIotE / email: max AT alcyone DOT com Alcyone Systems / web: http://www.alcyone.com/max/ San Jose, California, United States / icbm: 37 20 07 N 121 53 38 W \ "I am become death, / destroyer of worlds." / J. Robert Oppenheimer (quoting legend)