#2221 GCC 6 fails to compile RA_Token.cpp
Closed: Fixed None Opened 8 years ago by cheimes.

GCC 6 in Fedora 24 fails to compile RA_Token.cpp:

RA_Token.cpp:989:7: error: narrowing conversion of ‘194’ from ‘int’ to ‘char’ inside { }

GCC 6 is more strict than GCC 5 and earlier. It refuses to initialize a char[] with 'int' initializers because char is signed while the its are values from 0 to 255. The fix is simple: make the array an unsigned char array.


pushed to master in 07b8415312a7f37c566506ec516c4c74404402eb

Metadata Update from @cheimes:
- Issue assigned to cheimes
- Issue set to the milestone: 10.3.0.a1

7 years ago

Dogtag PKI is moving from Pagure issues to GitHub issues. This means that existing or new
issues will be reported and tracked through Dogtag PKI's GitHub Issue tracker.

This issue has been cloned to GitHub and is available here:
https://github.com/dogtagpki/pki/issues/2341

If you want to receive further updates on the issue, please navigate to the
GitHub issue and click on Subscribe button.

Thank you for understanding, and we apologize for any inconvenience.

Login to comment on this ticket.

Metadata