--- On Wed, 7/22/09, John Dallaway <[email protected]> wrote:

> From: John Dallaway <[email protected]>
> Subject: Re: Silence compiler warning when using sysctl
> To: [email protected]
> Cc: [email protected]
> Date: Wednesday, July 22, 2009, 4:15 AM
> Hi Jay
> 
> [email protected]
> wrote:
> 
> > The attached patch silences a compiler warning when
> using sysctl.
> 
> Assuming this is an undefined macro warning, I would
> prefer:
> 
>   #if defined(__FreeBSD_cc_version) &&
> (__FreeBSD_cc_version >= 300001)
> 
> to preserve existing behaviour precisely. Does this work
> for you?
> 
> John Dallaway
> 
Yes.  I thought about that too after I submitted the patch.

It turns out that the macro being conditionally defined (__printf0like()) is 
unused for eCos, so it works either way for eCos.

Jay

Reply via email to