From owner-freebsd-hackers Sun Dec 6 11:14:40 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA25705 for freebsd-hackers-outgoing; Sun, 6 Dec 1998 11:14:40 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.40.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA25700; Sun, 6 Dec 1998 11:14:36 -0800 (PST) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.9.1/8.8.5) with ESMTP id UAA54792; Sun, 6 Dec 1998 20:13:47 +0100 (CET) To: Archie Cobbs cc: bde@zeta.org.au, cvs-committers@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: getting to -Wunused In-reply-to: Your message of "Sun, 06 Dec 1998 10:57:53 PST." <199812061857.KAA13176@bubba.whistle.com> Date: Sun, 06 Dec 1998 20:13:47 +0100 Message-ID: <54790.912971627@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <199812061857.KAA13176@bubba.whistle.com>, Archie Cobbs writes: >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": Sure, go ahead and commit it. > >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 > -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop." "ttyv0" -- What UNIX calls a $20K state-of-the-art, 3D, hi-res color terminal To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message