diff options
author | Pierrick Bouvier <pierrick.bouvier@linaro.org> | 2023-02-21 16:30:05 +0100 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2023-04-10 11:19:08 +0300 |
commit | a3f531cee66b12041098f7a809c2a7d6ecb6ad7d (patch) | |
tree | 915582fe60f07c3bdb54c382517277db071bfb82 /ui | |
parent | 5d4218f0b22812b37662f29a5c33619823f948e0 (diff) |
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>
Diffstat (limited to 'ui')
0 files changed, 0 insertions, 0 deletions