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

Rename some variables to avoid compiler warnings when compiling
with -Wshadow=local.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20231009083726.30301-1-thuth@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
Thomas Huth 2023-10-09 10:37:25 +02:00 committed by Markus Armbruster
parent 9e7d33941f
commit cc46a7ef3b
2 changed files with 7 additions and 7 deletions

View file

@ -834,7 +834,7 @@ vg_resource_flush(VuGpu *g,
.width = width,
.height = height,
};
pixman_image_t *i =
pixman_image_t *img =
pixman_image_create_bits(pixman_image_get_format(res->image),
msg->payload.update.width,
msg->payload.update.height,
@ -842,11 +842,11 @@ vg_resource_flush(VuGpu *g,
payload.update.data),
width * bpp);
pixman_image_composite(PIXMAN_OP_SRC,
res->image, NULL, i,
res->image, NULL, img,
extents->x1, extents->y1,
0, 0, 0, 0,
width, height);
pixman_image_unref(i);
pixman_image_unref(img);
vg_send_msg(g, msg, -1);
g_free(msg);
}