diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-10-09 12:02:44 +0200 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2023-10-27 09:39:08 +0200 |
commit | 79a8d000732a967e554c0d726aaffdb08f70061b (patch) | |
tree | 3442ef1fae084945ec36bb88dbebbb99498ab12a | |
parent | e9894bc95afba5d5e8422b723fcf7d658cba1fea (diff) | |
download | qemu-79a8d000732a967e554c0d726aaffdb08f70061b.zip qemu-79a8d000732a967e554c0d726aaffdb08f70061b.tar.gz qemu-79a8d000732a967e554c0d726aaffdb08f70061b.tar.bz2 |
tests/virtio-scsi: Clean up global variable shadowing
Rename the (unused) 'allow' argument, following the pattern
used by the other tests in this file. This fixes:
tests/qtest/virtio-scsi-test.c:159:61: error: declaration shadows a variable in the global scope [-Werror,-Wshadow]
static void hotplug(void *obj, void *data, QGuestAllocator *alloc)
^
tests/qtest/virtio-scsi-test.c:37:25: note: previous declaration is here
static QGuestAllocator *alloc;
^
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-By: Emmanouil Pitsidianakis <manos.pitsidianakis@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20231009100251.56019-4-philmd@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
-rw-r--r-- | tests/qtest/virtio-scsi-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qtest/virtio-scsi-test.c b/tests/qtest/virtio-scsi-test.c index ceaa7f2..db10d57 100644 --- a/tests/qtest/virtio-scsi-test.c +++ b/tests/qtest/virtio-scsi-test.c @@ -156,7 +156,7 @@ static QVirtioSCSIQueues *qvirtio_scsi_init(QVirtioDevice *dev) return vs; } -static void hotplug(void *obj, void *data, QGuestAllocator *alloc) +static void hotplug(void *obj, void *data, QGuestAllocator *t_alloc) { QTestState *qts = global_qtest; |