Build with gcc-6 of libraw 0.17.2-3 fails with internal/dcraw_common.cpp: In member function ‘void LibRaw::vng_interpolate()’: internal/dcraw_common.cpp:4539:3: error: narrowing conversion of ‘128’ from ‘int’ to ‘signed char’ inside { } [-Wnarrowing] }, chood[] = { -1,-1, -1,0, -1,+1, 0,+1, +1,+1, +1,0, +1,-1, 0,-1 }; ^ internal/dcraw_common.cpp:4539:3: error: narrowing conversion of ‘136’ from ‘int’ to ‘signed char’ inside { } [-Wnarrowing] internal/dcraw_common.cpp:4539:3: error: narrowing conversion of ‘128’ from ‘int’ to ‘signed char’ inside { } [-Wnarrowing] internal/dcraw_common.cpp:4539:3: error: narrowing conversion of ‘136’ from ‘int’ to ‘signed char’ inside { } [-Wnarrowing] internal/dcraw_common.cpp:4539:3: error: narrowing conversion of ‘128’ from ‘int’ to ‘signed char’ inside { } [-Wnarrowing] internal/dcraw_common.cpp:4539:3: error: narrowing conversion of ‘136’ from ‘int’ to ‘signed char’ inside { } [-Wnarrowing] Makefile:863: recipe for target 'internal/dcraw_common.lo' failed make[1]: *** [internal/dcraw_common.lo] Error 1 make[1]: Leaving directory '/«PKGBUILDDIR»' dh_auto_build: make -j1 returned exit code 2 debian/rules:6: recipe for target 'build' failed make: *** [build] Error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2 Command exited with non-zero status 2
While 0001-Fix_dcraw_narrowing_for_gcc6.patch fixes dcraw/dcraw.c, it doesn't modify internal/dcraw_common.cpp which is derived (pre-processed) from the latter, cf. the "regenerate" target in Makefile.devel. Cheers, Roderich