Re: [PATCH] libvduse: Fix compiler warning with -Wshadow=local

2023-10-11 Thread Markus Armbruster
Thomas Huth writes: > 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 Queued. Thanks!

Re: [PATCH] libvduse: Fix compiler warning with -Wshadow=local

2023-10-07 Thread Yongji Xie
On Fri, Oct 6, 2023 at 8:08 PM Thomas Huth 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 > --- Reviewed-by: Xie

[PATCH] libvduse: Fix compiler warning with -Wshadow=local

2023-10-06 Thread Thomas Huth
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 --- subprojects/libvduse/libvduse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio