Re: [PATCH 15/19] sunrpc: don't warn for unused variable 'buf'

From: Arnd Bergmann
Date: Fri Jan 25 2013 - 18:45:18 EST


On Friday 25 January 2013, Myklebust, Trond wrote:
> > -----Original Message-----
> > From: Arnd Bergmann [mailto:arnd@xxxxxxxx]
> > Marking it as __maybe_unused avoids a harmless gcc warning.
>
> Alternatively, just declare it using the RPC_IFDEBUG() macro.

Right, makes sense: that's more consistent with other functions
doing the same thing. Thanks for taking a look.

Arnd

8<----