summary refs log tree commit diff stats
path: root/linux-user/strace.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-09-04 18:12:29 +0200
committerMarkus Armbruster <armbru@redhat.com>2023-09-29 10:07:16 +0200
commitfbf58f2141f670c1e4fc63be36e8a45330ab1e3d (patch)
treee93cdfe81c55b0406fad8056d5b27ee3c5a4dd3d /linux-user/strace.c
parent5f6d4f79af6eb4b0eed9cb3272073841514ca989 (diff)
downloadfocaccia-qemu-fbf58f2141f670c1e4fc63be36e8a45330ab1e3d.tar.gz
focaccia-qemu-fbf58f2141f670c1e4fc63be36e8a45330ab1e3d.zip
util/vhost-user-server: Clean up local variable shadowing
Fix:

  util/vhost-user-server.c: In function ‘set_watch’:
  util/vhost-user-server.c:274:20: warning: declaration of ‘vu_fd_watch’ shadows a previous local [-Wshadow=compatible-local]
    274 |         VuFdWatch *vu_fd_watch = g_new0(VuFdWatch, 1);
        |                    ^~~~~~~~~~~
  util/vhost-user-server.c:271:16: note: shadowed declaration is here
    271 |     VuFdWatch *vu_fd_watch = find_vu_fd_watch(server, fd);
        |                ^~~~~~~~~~~

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20230904161235.84651-18-philmd@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'linux-user/strace.c')
0 files changed, 0 insertions, 0 deletions