Re: [PATCH] xfs: remove unused variable in xrep_tempfile_copyin()
From: Carlos Maiolino
Date: Wed Nov 18 2026 - 03:59:48 EST
On Mon, 16 Nov 2026 10:05:10 +0800, Yiqing Wu wrote:
> The pos variable in xrep_tempfile_copyin() is initialized from the
> starting file offset and incremented on every iteration of the copy
> loop, but it is never used. GCC flags this as a dead assignment when
> building with W=1:
>
> fs/xfs/scrub/tempfile.c:493:33: warning: variable pos set but not used [-Wunused-but-set-variable=]
>
> [...]
Applied to for-next, thanks!
[1/1] xfs: remove unused variable in xrep_tempfile_copyin()
commit: 5c7da17f904da61c6912ae719e8f3c3eb353ee88
Best regards,
--
Carlos Maiolino <cem@xxxxxxxxxx>