]> code.ossystems Code Review - openembedded-core.git/commit
groff_1.18.1.4: fix narrowing conversion error
authorHongxu Jia <hongxu.jia@windriver.com>
Fri, 29 Jul 2016 07:47:41 +0000 (03:47 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 3 Aug 2016 11:59:49 +0000 (12:59 +0100)
commit0d79e7b4373053a7f20f18ed962c5a17a969e57e
tree7b5248228f813d97141d868e336071e58d82a243
parente4fefccf03bb1e588468757d0fbe42f0704206d2
groff_1.18.1.4: fix narrowing conversion error

While gcc6 used, build old groff (for anti-GPLv3 reasons) failed:
.....
|groff-1.18.1.4/src/devices/grolbp/charset.h:69:1: error: narrowing
conversion of '130' from 'int' to 'char' inside { } [-Wnarrowing]
......

In upstream git://git.savannah.gnu.org/groff.git,
the following commit fix the issue, but the license is GPLV3,
we could not backport it to the old groff which license is GPLV2.
...
commit d180038ae0da19655bc2760ae2043efa0550a76c
Author: Werner LEMBERG <wl@gnu.org>
Date:   Wed Apr 16 21:11:07 2003 +0000
    * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
...

We use another different way to fix the issue.

[YOCTO #9896]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-extended/groff/groff-1.18.1.4/fix-narrowing-conversion-error.patch [new file with mode: 0644]
meta/recipes-extended/groff/groff_1.18.1.4.bb