aboutsummaryrefslogtreecommitdiff
path: root/hw/net/virtio-net.c
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2023-10-23 19:50:38 +0200
committerMarkus Armbruster <armbru@redhat.com>2023-11-13 07:41:35 +0100
commit6ab4f1c9e2def22f766ed36d903484b67a2fd95b (patch)
tree4d77908c66ac0e3c6e9f22b586fcce71761aeea5 /hw/net/virtio-net.c
parent69680740eafa1838527c90155a7432d51b8ff203 (diff)
downloadqemu-6ab4f1c9e2def22f766ed36d903484b67a2fd95b.zip
qemu-6ab4f1c9e2def22f766ed36d903484b67a2fd95b.tar.gz
qemu-6ab4f1c9e2def22f766ed36d903484b67a2fd95b.tar.bz2
block/snapshot: Fix compiler warning with -Wshadow=local
No need to declare a new variable in the the inner code block here, we can re-use the "ret" variable that has been declared at the beginning of the function. With this change, the code can now be successfully compiled with -Wshadow=local again. Signed-off-by: Thomas Huth <thuth@redhat.com> Message-ID: <20231023175038.111607-1-thuth@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> [Commit message tweaked] Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'hw/net/virtio-net.c')
0 files changed, 0 insertions, 0 deletions