Re: [PATCH v2 1/2] kpartx/devmapper.c: fix unused-but-set variable error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2022-01-09 at 09:28 +0000, Sergei Trofimovich wrote:
> On gcc-12 build failed as:
> 
>     devmapper.c: In function 'dm_simplecmd':
>     devmapper.c:61:13: error: unused variable 'udev_wait_flag' [-
> Werror=unused-variable]
>        61 |         int udev_wait_flag = (task == DM_DEVICE_RESUME ||
>           |             ^~~~~~~~~~~~~~
> 
> Fix error by hiding it's declaration under #ifdef that uses it.
> 
> CC: Martin Wilck <mwilck@xxxxxxxx>
> CC: Benjamin Marzinski <bmarzins@xxxxxxxxxx>
> Signed-off-by: Sergei Trofimovich <slyich@xxxxxxxxx>

For this series:
Reviewed-by: Martin Wilck <mwilck@xxxxxxxx>


--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/dm-devel





[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux