[PATCH] wine/debug.h: Avoid narrowing conversions in struct initializers.

Jacek Caban jacek at codeweavers.com
Tue Jan 8 12:45:24 CST 2019


Fixes using the header from C++.

Signed-off-by: Jacek Caban <jacek at 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(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-wine-debug.h-Avoid-narrowing-conversions-in-struct-in.diff
Type: text/x-patch
Size: 837 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20190108/153125c6/attachment.bin>


More information about the wine-devel mailing list