tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: rc.d and non daemon servers

On Sat, 7 Mar 2009 12:23:17 -0500
"James K. Lowden" <> wrote:
> You both said "to make the current version of gcc behave".  I guess we
> could argue, if we were so inclined, about whether that makes for good
> advice.  
> The compiler knows perfectly well this is a main module.  It knows its
> public symbols aren't going to be linked to.  It can inline things at

How does it know that?  The linker knows but it's too late by then.

> will, and there's no use warning about a missing prototype for a function
> that *by definition* can't be used anywhere else.  Forcing "static" (or a
> prototype) on the programmer serves no one.  

It serves to tell the compiler that the linker will not be using this.

D'Arcy J.M. Cain <>

Home | Main Index | Thread Index | Old Index