[PATCH] wine/debug.h: Avoid narrowing conversions in struct initializers.
8 Jan
2019
8 Jan
'19
6:45 p.m.
Fixes using the header from C++. Signed-off-by: Jacek Caban <jacek(a)codeweavers.com> --- The error is: wine-git/include/wine/debug.h:365:69: error: narrowing conversion of ‘-1’ from ‘int’ to ‘unsigned char’ inside { } [-Wnarrowing] static struct __wine_debug_channel __wine_dbch_##ch = { ~0, #ch }; \ ^ test.cpp:6:1: note: in expansion of macro ‘WINE_DEFAULT_DEBUG_CHANNEL’ include/wine/debug.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
2533
Age (days ago)
2533
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jacek Caban