Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Dec 1998 04:02:55 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        cvs-committers@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG, j@uriah.heep.sax.de
Subject:   Re: getting to -Wunused
Message-ID:  <199812061702.EAA23009@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>>      (i)  Some of these are defined #ifdef DDB, and are clearly meant
>>           for debugging purposes (they're not used, but they're handy
>>           to call from the debugger to print out stuff, etc). These
>>           are "legitimate" unused functions.
>
>I think those should not be defined `static'.  If they are meant to
>be called from within DDB, it's necessary to maintain a globally
>unique function name anyway, so why having it `static'?

Mainly because they show up as noise in staticness checkers such as
kernxref.sh.  Anyway, _all_ functions should have globally unique names
so that they can be referenced from within ddb.

Bruce

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?199812061702.EAA23009>