python: fix disabling the SSL module
[buildroot-gz.git] / package / libfreeimage / 0004-fix-gcc-6.patch
blob0f10dec715e8c0e8055192e50ac956d2edcec960
1 libraw/dc_raw: fix gcc-6 failures
3 With gcc-6, it is no longer allowed to narrow the type of constants in
4 a constant array declaration.
6 Fixes:
7 http://autobuild.buildroot.org/results/081/0811531872f69f9febbdc482dfbdd7fb5c35d1c8/build-end.log
9 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
11 diff -durN a/Source/LibRawLite/internal/dcraw_common.cpp b/Source/LibRawLite/internal/dcraw_common.cpp
12 --- a/Source/LibRawLite/internal/dcraw_common.cpp
13 +++ b/Source/LibRawLite/internal/dcraw_common.cpp
14 @@ -2479,7 +2479,7 @@
16 void CLASS kodak_radc_load_raw()
18 - static const char src[] = {
19 + static const signed char src[] = {
20 1,1, 2,3, 3,4, 4,2, 5,7, 6,5, 7,6, 7,8,
21 1,0, 2,1, 3,3, 4,4, 5,2, 6,7, 7,6, 8,5, 8,8,
22 2,1, 2,3, 3,0, 3,2, 3,4, 4,6, 5,5, 6,7, 6,8,
23 @@ -4519,7 +4519,7 @@
25 void CLASS vng_interpolate()
27 - static const signed char *cp, terms[] = {
28 + static const int *cp, terms[] = {
29 -2,-2,+0,-1,0,0x01, -2,-2,+0,+0,1,0x01, -2,-1,-1,+0,0,0x01,
30 -2,-1,+0,-1,0,0x02, -2,-1,+0,+0,0,0x03, -2,-1,+0,+1,1,0x01,
31 -2,+0,+0,-1,0,0x06, -2,+0,+0,+0,1,0x02, -2,+0,+0,+1,0,0x03,