On Mon, 15 Feb 2016 08:34:31 -0600
Richard Shaw <[email protected]> wrote:
> Can someone point me in the right direction? My package openCOLLADA is
> FTBFS in rawhide with the following (repeating) error:
>
> /builddir/build/BUILD/OpenCOLLADA-3335ac164e68b2512a40914b14c74db260e6ff7d/COLLADABaseUtils/src/COLLADABUURI.cpp:57:2:
> error: narrowing conversion of '-1' from 'int' to 'char' inside { }
> [-Wnarrowing]
> };
isn't it on ARM? Then you should use explicit "signed char" as char is
unsigned by default on ARM (and other arches), see eg.
http://blog.cdleary.com/2012/11/arm-chars-are-unsigned-by-default/
Dan
> I tried using the gcc6 porting guide but I'm not qutie enough of a
> programmer to understand how to apply it in this case. The offending
> code is:
>
> const char HEX2DEC[256] = ^M
> {^M
> /* 0 1 2 3 4 5 6 7 8 9 A B C D
> E F */^M
> /* 0 */ -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1,
> -1,-1,-1,-1,^M
> /* 1 */ -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1,
> -1,-1,-1,-1,^M
> /* 2 */ -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1,
> -1,-1,-1,-1,^M
> /* 3 */ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,-1,-1,
> -1,-1,-1,-1,^M
> ^M
> /* 4 */ -1,10,11,12, 13,14,15,-1, -1,-1,-1,-1,
> -1,-1,-1,-1,^M
> /* 5 */ -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1,
> -1,-1,-1,-1,^M
> /* 6 */ -1,10,11,12, 13,14,15,-1, -1,-1,-1,-1,
> -1,-1,-1,-1,^M
> /* 7 */ -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1,
> -1,-1,-1,-1,^M
> ^M
> /* 8 */ -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1,
> -1,-1,-1,-1,^M
> /* 9 */ -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1,
> -1,-1,-1,-1,^M
> /* A */ -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1,
> -1,-1,-1,-1,^M
> /* B */ -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1,
> -1,-1,-1,-1,^M
> ^M
> /* C */ -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1,
> -1,-1,-1,-1,^M
> /* D */ -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1,
> -1,-1,-1,-1,^M
> /* E */ -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1,
> -1,-1,-1,-1,^M
> /* F */ -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1,
> -1,-1,-1,-1^M };^M
>
> Thanks,
> Richard
--
devel mailing list
[email protected]
http://lists.fedoraproject.org/admin/lists/[email protected]