qemu/qga
Pierrick Bouvier a3f531cee6 qga/vss-win32: fix warning for clang++-15
Reported when compiling with clang-windows-arm64.

../qga/vss-win32/install.cpp:537:9: error: variable 'hr' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
    if (!(ControlService(service, SERVICE_CONTROL_STOP, NULL))) {
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../qga/vss-win32/install.cpp:545:12: note: uninitialized use occurs here
    return hr;
           ^~

Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Fixes: 917ebcb170 ("qga-win: Fix QGA VSS Provider service stop failure")
Reviewed-by: Konstantin Kostiuk <kkostiuk@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Kostiantyn Kostiuk <kostyanf14@live.com>
(cherry picked from commit 0fcd574b02)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2023-04-10 11:19:08 +03:00
..
installer qga/win32: Remove change action from MSI installer 2023-03-30 12:19:04 +03:00
vss-win32 qga/vss-win32: fix warning for clang++-15 2023-04-10 11:19:08 +03:00
channel-posix.c qga: add channel path to error messages 2022-10-26 20:35:20 +03:00
channel-win32.c
channel.h
commands-bsd.c qga: Add HW address getting for FreeBSD 2022-10-26 20:35:07 +03:00
commands-common.h qga: Move HW address getting to a separate function 2022-10-26 20:35:07 +03:00
commands-linux.c
commands-posix-ssh.c
commands-posix.c qga: Move HW address getting to a separate function 2022-10-26 20:35:07 +03:00
commands-win32.c
commands.c qga: Drop dangling reference to QERR_QGA_LOGGING_DISABLED 2023-03-30 12:19:04 +03:00
cutils.c
cutils.h
guest-agent-command-state.c
guest-agent-core.h
main.c qga: Add UFS freeze/thaw support for FreeBSD 2022-10-26 20:35:07 +03:00
meson.build qga: Add UFS freeze/thaw support for FreeBSD 2022-10-26 20:35:07 +03:00
qapi-schema.json Fix some typos in documentation and comments 2022-11-05 20:35:45 +01:00
service-win32.c
service-win32.h
vss-win32.c
vss-win32.h