Re: [PATCH] btrfs: scrub: initialize variable explicitly

From: David Sterba
Date: Thu Jun 08 2023 - 08:53:09 EST


On Thu, Jun 08, 2023 at 01:18:20PM +0800, Qu Wenruo wrote:
>
>
> On 2023/6/8 10:49, Ou Shixiong wrote:
> >
> > Fix error of
> > error: ‘ret’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
> >
> > Signed-off-by: Ou Shixiong <oushixiong@xxxxxxxxxx>
>
> Not again.
>
> Please explain how @ret can be uninitialized, and your toolchain version.
>
> To me, this looks like a false alert, and it's possible your toolchain
> is out of date or lacks certain backports.

Yeah, for obvious false altert warnings at least we need to know the
compiler, version and architecture.