On Wed, Oct 16, 2013 at 10:03:32PM +0200, Alistair Crooks wrote: > 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.
This can force a variable to be assigned a stack slot without good reason. Joerg