log4cxx: fix build issue with gcc6+ on architectures with signed char
commit326228b80fca35e8ca07196692ed753fff69eb18
authorPeter Korsgaard <peter@korsgaard.com>
Mon, 30 Jan 2017 22:26:20 +0000 (30 23:26 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 31 Jan 2017 22:37:27 +0000 (31 23:37 +0100)
tree377b52fff95fc1ff2b0957a18ca5953fa7c7d0d4
parent62e4e13e185cbc6e7a7542a2b911e7befb7f6946
log4cxx: fix build issue with gcc6+ on architectures with signed char

Fixes:
http://autobuild.buildroot.net/results/029/02946a75f478b1304896e7a0794bb6aa527e45c0/
http://autobuild.buildroot.net/results/14b/14b9cab834540a01c9c838ea579dc73e383f754a/
http://autobuild.buildroot.net/results/de8/de8f2b132084a10fbe8efb38c7b31adca4562852/

The source code contains a number of character constants > 127, which causes
build errors with gcc6+ on architectures where char is signed:

locationinfo.cpp:163:21: error: narrowing conversion of '237' from 'int' to 'char' inside { } [-Wnarrowing]

Fix it by adding an upstream patch adding explicit static_cast around these.
Also add a local patch to fix the test suite as this is not fixed upstream.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/log4cxx/0004-Applied-patch-for-LOGCXX-400-LOGCXX-404-LOGCXX-402-L.patch [new file with mode: 0644]
package/log4cxx/0005-domtestcase.cpp-fix-narrowing-conversion-compile-err.patch [new file with mode: 0644]