[Bug 38337] clang compiling warnings
wine-bugs at winehq.org
wine-bugs at winehq.org
Tue Feb 26 22:16:13 CST 2019
https://bugs.winehq.org/show_bug.cgi?id=38337
--- Comment #17 from Sergey Isakov <isakov-sl at bk.ru> ---
/Volumes/MacHD/Users/sergey/Documents/Projects/winehq/dlls/user32/sysparams.c:1740:15:
warning: variable 'padded_border' is used uninitialized whenever '&&' condition
is false [-Wsometimes-uninitialized]
ret = get_entry( &entry_BORDER, 0, &lpnm->iBorderWidth ) &&
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Volumes/MacHD/Users/sergey/Documents/Projects/winehq/dlls/user32/sysparams.c:1755:31:
note: uninitialized use occurs here
lpnm->iBorderWidth += padded_border;
^~~~~~~~~~~~~
/Volumes/MacHD/Users/sergey/Documents/Projects/winehq/dlls/user32/sysparams.c:1740:15:
note: remove the '&&' if its condition is always true
ret = get_entry( &entry_BORDER, 0, &lpnm->iBorderWidth ) &&
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Volumes/MacHD/Users/sergey/Documents/Projects/winehq/dlls/user32/sysparams.c:1736:26:
note: initialize the variable 'padded_border' to silence this warning
int padded_border;
^
= 0
-------------------------------------
No comment
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
More information about the wine-bugs
mailing list