[Bug 38337] clang compiling warnings
wine-bugs at winehq.org
wine-bugs at winehq.org
Tue Feb 26 22:09:05 CST 2019
https://bugs.winehq.org/show_bug.cgi?id=38337
--- Comment #12 from Sergey Isakov <isakov-sl at bk.ru> ---
/Volumes/MacHD/Users/sergey/Documents/Projects/winehq/dlls/d3d12/tests/d3d12.c:28:9:
warning:
taking the absolute value of unsigned type 'unsigned int' has no effect
[-Wabsolute-value]
if (abs((c1 & 0xff) - (c2 & 0xff)) > max_diff)
^
/Volumes/MacHD/Users/sergey/Documents/Projects/winehq/dlls/d3d12/tests/d3d12.c:28:9:
note: remove
the call to 'abs' since unsigned values cannot be negative
if (abs((c1 & 0xff) - (c2 & 0xff)) > max_diff)
^~~
/Volumes/MacHD/Users/sergey/Documents/Projects/winehq/dlls/d3d12/tests/d3d12.c:31:9:
warning:
taking the absolute value of unsigned type 'unsigned int' has no effect
[-Wabsolute-value]
if (abs((c1 & 0xff) - (c2 & 0xff)) > max_diff)
^
/Volumes/MacHD/Users/sergey/Documents/Projects/winehq/dlls/d3d12/tests/d3d12.c:31:9:
note: remove
the call to 'abs' since unsigned values cannot be negative
if (abs((c1 & 0xff) - (c2 & 0xff)) > max_diff)
^~~
------------------------
as said before there must be cast to singed int.
--
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