Dan Horák wrote:
> you are welcome, there will be more packages suffering from the same
> problem (I own at least one :-)), sometimes appending "-fsigned-char"
> to CFLAGS will be easier.
It is also possible to just get rid of the narrowing error with:
-Wno-error=narrowing
but that will only restore the previous GCC behavior. It will NOT make the
program magically work if it later checks for -1 with something like
"if (HEX2DEC[i] < 0)" (which never worked on ARM without -fsigned-char or
explicitly writing "signed char").
There are other cases where -Wno-error=narrowing is the most effective fix,
but char x[]={-1} is a case where the narrowing error is really only
uncovering a deeper issue.
Kevin Kofler
--
devel mailing list
[email protected]
http://lists.fedoraproject.org/admin/lists/[email protected]