fa.netbsd.tech.kern
[Top] [All Lists]

Re: __dead functions

Subject: Re: __dead functions
From: "Valeriy E. Ushakov" <uwe@xxxxxxxxxxxxx>
Date: Tue, 22 Jul 2008 14:47:35 UTC
Newsgroups: fa.netbsd.tech.kern

On Tue, Jul 22, 2008 at 15:48:29 +0200, Rhialto wrote:

> On Fri 18 Jul 2008 at 21:10:13 +0400, Valeriy E. Ushakov wrote:
> > Actually we can arrange for lint's /* NOTREACHED */ comment to appear
> > at the end of that macro so that one macro covers "notreached"
> > semantics for all the tools we use.
>
> That won't actually work, since comments are removed in translation
> phase 3 and macros are expanded in translation phase 4, so after the
> comments are gone.

Then how does all those CONSTCOND lint comments in macros do work? :)
Cpp has -CC option for a reason.


SY, Uwe
-- 
uwe@xxxxxxxxxxxxx                       |       Zu Grunde kommen
http://snark.ptc.spbu.ru/~uwe/          |       Ist zu Grunde gehen

<Prev in Thread] Current Thread [Next in Thread>