Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 02 Jan 1999 15:15:20 +1100
From:      Joe Shevland <J_Shevland@TurnAround.com.au>
To:        Greg Lehey <grog@lemis.com>
Cc:        FreeBSD Hackers <hackers@FreeBSD.ORG>
Subject:   Re: Finding unused functions
Message-ID:  <368D9D58.EDD30BA7@TurnAround.com.au>
References:  <19990102142213.J48076@freebie.lemis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
'lint' should do the trick I think. It'll return something like:

doNothing defined( foo.c(8) ), but never used

You'll get a _lot_ more than that though probably :) I haven't used lint
really, and it looks as though unused variables return a similar
message; may be a fair bit to sift through.

HTH, Joe.

Greg Lehey wrote:
> 
> It's occurred to me that after rewriting some code, I have some unused
> functions in a program.  Are there any good automatic ways to find out
> what they are, something like the warnings you get from cc about
> unused variables?
> 
> Greg
> --
> See complete headers for address, home page and phone numbers
> finger grog@lemis.com for PGP public key
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-hackers" in the body of the message

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?368D9D58.EDD30BA7>