xemu/qga/vss-win32
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 0fcd574b025fccdf14d5140687cafe2bc30b634f)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2023-04-10 11:19:08 +03:00
..
install.cpp qga/vss-win32: fix warning for clang++-15 2023-04-10 11:19:08 +03:00
install.h qemu-ga: Make QGA VSS provider service run only when needed 2017-04-26 23:56:46 -05:00
meson.build qga-vss: Add auto generated headers to dependencies 2022-05-14 12:32:40 +02:00
provider.cpp qga/vss-win32: check old VSS SDK headers 2022-03-15 11:26:20 +01:00
qga-vss.def qemu-ga: Add Windows VSS provider and requester as DLL 2013-09-09 14:17:57 -05:00
qga-vss.idl qemu-ga: Add Windows VSS provider and requester as DLL 2013-09-09 14:17:57 -05:00
requester.cpp qga-vss: Use the proper operator to free memory 2022-05-14 12:32:41 +02:00
requester.h Replace GCC_FMT_ATTR with G_GNUC_PRINTF 2022-03-22 14:40:51 +04:00
vss-common.h qga/vss-win32: check old VSS SDK headers 2022-03-15 11:26:20 +01:00
vss-handles.h Clean up ill-advised or unusual header guards 2019-05-13 08:58:55 +02:00