Date: Mon, 28 Nov 1994 08:32:11 -0500 (CDT) From: Aaron Ucko Subject: Re: Unused variables To: A DOT APPLEYARD AT fs1 DOT mt DOT umist DOT ac DOT uk Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Organization: Rockhurst College; Kansas City, MO > In djgpp, how can I get a list of all variables and labels in a program >which are declared but not used? I was editing a program which someone wants >me to make it more efficient, and in the process many variables became >redundant, and I want to find them by some means quicker than having to search >for every one with my emacs's search-for-word. This is an optional compiler warning...I can't remember which one exactly, but -Wall should cover it. --- Aaron Ucko (ucko AT vax1 DOT rockhurst DOT edu; finger for PGP public key) -=- httyp! -=*=-Just because you're paranoid doesn't mean they aren't out to get you.-=*=- Geek code 2.1 [finger hayden AT vax1 DOT mankato DOT msus DOT edu for explanation]: GCS/M/S d(-) H s g+ p? !au a-- w+ v+ C++(+++)>++++ U-(S+)>++++ P+ L>++ 3(-) E-(----) !N>++ K- W(--) M-(--) V(--) po-(--) Y+(++) t(+) !5 j R G tv--(-) b+++ !D(--) B--(---) e>++++(*) u++(@) h!() f(+) r-(--)>+++ n+(-) y?