[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] libvduse: Fix compiler warning with -Wshadow=local
From: |
Yongji Xie |
Subject: |
Re: [PATCH] libvduse: Fix compiler warning with -Wshadow=local |
Date: |
Sat, 7 Oct 2023 16:03:32 +0800 |
On Fri, Oct 6, 2023 at 8:08 PM Thomas Huth <thuth@redhat.com> wrote:
>
> No need to declare a new variable with the same name here,
> we can simple re-use the one from the top of the function.
> With this change, the file now compiles fine with -Wshadow=local.
>
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
Reviewed-by: Xie Yongji <xieyongji@bytedance.com>
Thanks,
Yongji