Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Dec 1998 10:57:53 -0800 (PST)
From:      Archie Cobbs <archie@whistle.com>
To:        phk@critter.freebsd.dk (Poul-Henning Kamp)
Cc:        bde@zeta.org.au, archie@whistle.com, cvs-committers@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG
Subject:   Re: getting to -Wunused
Message-ID:  <199812061857.KAA13176@bubba.whistle.com>
In-Reply-To: <46296.912963634@critter.freebsd.dk> from Poul-Henning Kamp at "Dec 6, 98 06:00:34 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Poul-Henning Kamp writes:
> >You should check for variables that are used in ifdefed code and ifdef
> >the variables.
> 
> See also: src/tools/tools/kernxref/*

Cool.. we can make "Step 5" the removal of non-static unused functions :-)
By the way, I neede to add "-aout":

Index: kernxref.sh
===================================================================
RCS file: /home/ncvs/src/tools/tools/kernxref/kernxref.sh,v
retrieving revision 1.9
diff -u -r1.9 kernxref.sh
--- kernxref.sh	1998/11/27 10:18:56	1.9
+++ kernxref.sh	1998/12/06 18:57:57
@@ -13,7 +13,7 @@
 # kernel.
 
 cd /sys/compile/LINT
-nm -gon `echo *.o /lkm/*.o | tr ' ' '\012' | egrep -v '(aicasm|genassym)'` |
+nm -aout -gon `echo *.o /lkm/*.o | tr ' ' '\012' | egrep -v '(aicasm|genassym)'` |
     tr : ' ' | awk '
 NF > 1	{
 	if (length($2) == 8) {

-Archie

___________________________________________________________________________
Archie Cobbs   *   Whistle Communications, Inc.  *   http://www.whistle.com

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



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