Menu

#6 libdkim-1.0.21 fails to compile with GCC-6

Unstable_(example)
open
nobody
None
5
2017-05-16
2017-05-16
Hodorgasm
No

Building libdkim-1.0.21 with gcc-6.3.0 fails with:

dkimverify.cpp:221:98: error: narrowing conversion of ‘-1’ from ‘int’ to ‘unsigned char’ inside { } [-Wnarrowing]
 1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1};

See Gentoo Bug 594320

In GCC-6, narrowing conversions are not allowed in braced initialization. Explicit casting must be used.

1 Attachments

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.