Source-Changes-D archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/sys/sys
On Wed, Oct 16, 2013 at 03:31:43PM -0400, Christos Zoulas wrote:
> Module Name: src
> Committed By: christos
> Date: Wed Oct 16 19:31:43 UTC 2013
>
> Modified Files:
> src/sys/sys: cdefs.h
>
> Log Message:
> introduce __USE(variable) that uses a variable to squash unused variable
> warnings.
> [...]
>
> +#define __USE(a) ((void)(a))
I've long been using a macro like:
#define USE_ARG(x) /*LINTED*/(void)&(x)
to get rid of unused arg warnings, after a conversation between dsl
and others (I think) on one of our lists.
Regards,
Al
Home |
Main Index |
Thread Index |
Old Index