Re: [PATCH] contrib/vhost-user-gpu: Fix compiler warning when compiling with -Wshadow

2023-10-08 Thread Michael S. Tsirkin
On Fri, Oct 06, 2023 at 07:35:18PM +0200, Thomas Huth wrote: > Rename some variables to avoid compiler warnings when compiling > with -Wshadow=local. > > Signed-off-by: Thomas Huth > --- > contrib/vhost-user-gpu/vugpu.h | 8 > contrib/vhost-user-gpu/vhost-user-gpu.c | 6 +++---

Re: [PATCH] contrib/vhost-user-gpu: Fix compiler warning when compiling with -Wshadow

2023-10-08 Thread Michael S. Tsirkin
On Fri, Oct 06, 2023 at 07:35:18PM +0200, Thomas Huth wrote: > Rename some variables to avoid compiler warnings when compiling > with -Wshadow=local. > > Signed-off-by: Thomas Huth Reviewed-by: Michael S. Tsirkin > --- > contrib/vhost-user-gpu/vugpu.h | 8 > contrib/vhost-u

Re: [PATCH] contrib/vhost-user-gpu: Fix compiler warning when compiling with -Wshadow

2023-10-07 Thread Marc-André Lureau
On Fri, Oct 6, 2023 at 9:35 PM Thomas Huth wrote: > > Rename some variables to avoid compiler warnings when compiling > with -Wshadow=local. > > Signed-off-by: Thomas Huth Reviewed-by: Marc-André Lureau > --- > contrib/vhost-user-gpu/vugpu.h | 8 > contrib/vhost-user-gpu/vho

[PATCH] contrib/vhost-user-gpu: Fix compiler warning when compiling with -Wshadow

2023-10-06 Thread Thomas Huth
Rename some variables to avoid compiler warnings when compiling with -Wshadow=local. Signed-off-by: Thomas Huth --- contrib/vhost-user-gpu/vugpu.h | 8 contrib/vhost-user-gpu/vhost-user-gpu.c | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/contrib/vho