Re: [PATCH] Btrfs: fix compile error about uninitialized variable

From: David Sterba
Date: Wed Feb 08 2023 - 15:16:23 EST


On Wed, Feb 01, 2023 at 10:22:19AM +0800, ye.xingchen@xxxxxxxxxx wrote:
> From: Minghao Chi <chi.minghao@xxxxxxxxxx>
>
> fs/btrfs/tree-log.c:6166:6: note: 'last_range_start' was declared here
> fs/btrfs/volumes.c:2598:27: note: 'seed_devices' was declared here
> fs/btrfs/send.c:1909:13: error: 'right_gen' may be used uninitialized in this function [-Werror=maybe-uninitialized]

We have the warning -Wmaybe-uninitialized enabled locally for fs/btrfs/
and no pending compiler warnings but in case you find something please
tell us which compiler and version it is. Sometimes it makes sense to
fix warnings for older yet still widely used versions.