[PATCH 0/1] MR9630: user32: Avoid compiler warnings in tests
This avoids two compiler warnings with current versions of GCC 16 (which look like false positives, alas hard to avoid): dlls/user32/tests/win.c:13943:45: warning: "width" may be used uninitialized dlls/user32/tests/win.c:13943:73: warning: "height" may be used uninitialized -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9630
From: Gerald Pfeifer <gerald(a)pfeifer.com> This avoids two compiler warnings with current versions of GCC 16 (which look like false positives, alas hard to avoid): dlls/user32/tests/win.c:13943:45: warning: "width" may be used uninitialized dlls/user32/tests/win.c:13943:73: warning: "height" may be used uninitialized --- dlls/user32/tests/win.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c index 3f5d6c63395..921ce01299a 100644 --- a/dlls/user32/tests/win.c +++ b/dlls/user32/tests/win.c @@ -13868,7 +13868,7 @@ static void test_cascade_windows(void) unsigned int spacing = GetSystemMetrics(SM_CYCAPTION) + GetSystemMetrics(SM_CYDLGFRAME); static const unsigned int zorder[] = {1, 3, 5, 2, 9, 4, 8, 6, 0, 7}; RECT orig = {100, 200, 300, 400}, parent_client, rect, prev, expect; - unsigned int width, height; + unsigned int width = 0, height = 0; HWND parent, hwnds[10]; POINT pt = {0}; WORD ret; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/9630
participants (2)
-
Gerald Pfeifer -
Gerald Pfeifer (@gerald)