Re: [PATCH] xfs: fix unused variable warning

2021-02-04 Thread Brian Foster
On Thu, Feb 04, 2021 at 05:03:44PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > When debugging is disabled, the ASSERT() is left out and > the 'log' variable becomes unused: > > fs/xfs/xfs_log.c::16: error: unused variable 'log' > [-Werror,-Wunused-variable] > > Remove the variabl

[PATCH] xfs: fix unused variable warning

2021-02-04 Thread Arnd Bergmann
From: Arnd Bergmann When debugging is disabled, the ASSERT() is left out and the 'log' variable becomes unused: fs/xfs/xfs_log.c::16: error: unused variable 'log' [-Werror,-Wunused-variable] Remove the variable declaration and open-code it inside of the assertion. Fixes: 303591a0a947 ("xf