Re: openCOLLADA: Help with GCC6 narrowing conversion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
devel@xxxxxxxxxxxxxxxxxxxxxxx
http://lists.fedoraproject.org/admin/lists/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux