From owner-freebsd-hackers Sun Dec 6 11:06:01 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA24969 for freebsd-hackers-outgoing; Sun, 6 Dec 1998 11:06:01 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA24954; Sun, 6 Dec 1998 11:05:59 -0800 (PST) (envelope-from archie@whistle.com) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id KAA16485; Sun, 6 Dec 1998 10:58:16 -0800 (PST) Received: from bubba.whistle.com( 207.76.205.7) by whistle.com via smap (V2.0) id xma016483; Sun, 6 Dec 98 10:57:54 -0800 Received: (from archie@localhost) by bubba.whistle.com (8.8.7/8.6.12) id KAA13176; Sun, 6 Dec 1998 10:57:53 -0800 (PST) From: Archie Cobbs Message-Id: <199812061857.KAA13176@bubba.whistle.com> Subject: Re: getting to -Wunused In-Reply-To: <46296.912963634@critter.freebsd.dk> from Poul-Henning Kamp at "Dec 6, 98 06:00:34 pm" To: phk@critter.freebsd.dk (Poul-Henning Kamp) Date: Sun, 6 Dec 1998 10:57:53 -0800 (PST) Cc: bde@zeta.org.au, archie@whistle.com, cvs-committers@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 freebsd-hackers" in the body of the message