Date: Sun, 15 Apr 2018 23:57:45 +0000 (UTC) From: Jan Beich <jbeich@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r467442 - head/graphics/freeimage/files Message-ID: <201804152357.w3FNvjan099106@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jbeich Date: Sun Apr 15 23:57:45 2018 New Revision: 467442 URL: https://svnweb.freebsd.org/changeset/ports/467442 Log: graphics/freeimage: unbreak build with Clang 6 (C++14 by default) Source/LibRawLite/./internal/dcraw_common.cpp:2042:17: error: constant expression evaluates to -2 which cannot be narrowed to type 'char' [-Wc++11-narrowing] 1,0, 2,2, 2,-2, ^~ Source/LibRawLite/./internal/dcraw_common.cpp:2042:17: note: insert an explicit cast to silence this issue 1,0, 2,2, 2,-2, ^~ static_cast<char>( ) [...] Reported by: pkg-fallout (armv6, armv7, aarch64) Modified: head/graphics/freeimage/files/patch-Source_LibRawLite_internal_dcraw__common.cpp (contents, props changed) Modified: head/graphics/freeimage/files/patch-Source_LibRawLite_internal_dcraw__common.cpp ============================================================================== --- head/graphics/freeimage/files/patch-Source_LibRawLite_internal_dcraw__common.cpp Sun Apr 15 23:57:29 2018 (r467441) +++ head/graphics/freeimage/files/patch-Source_LibRawLite_internal_dcraw__common.cpp Sun Apr 15 23:57:45 2018 (r467442) @@ -1,7 +1,17 @@ +https://github.com/LibRaw/LibRaw/commit/f4c0b98581a6 https://github.com/LibRaw/LibRaw/commit/2cef10389486 --- Source/LibRawLite/internal/dcraw_common.cpp.orig 2014-02-07 19:48:10 UTC +++ Source/LibRawLite/internal/dcraw_common.cpp +@@ -2027,7 +2027,7 @@ void CLASS quicktake_100_load_raw() + + void CLASS kodak_radc_load_raw() + { +- static const char src[] = { ++ static const signed char src[] = { + 1,1, 2,3, 3,4, 4,2, 5,7, 6,5, 7,6, 7,8, + 1,0, 2,1, 3,3, 4,4, 5,2, 6,7, 7,6, 8,5, 8,8, + 2,1, 2,3, 3,0, 3,2, 3,4, 4,6, 5,5, 6,7, 6,8, @@ -3782,22 +3782,22 @@ void CLASS vng_interpolate() -2,+0,+0,-1,0,0x06, -2,+0,+0,+0,1,0x02, -2,+0,+0,+1,0,0x03, -2,+1,-1,+0,0,0x04, -2,+1,+0,-1,1,0x04, -2,+1,+0,+0,0,0x06,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201804152357.w3FNvjan099106>