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)
This commit is contained in:
parent
1f842fbdbb
commit
1ce36a57d2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=467442
1 changed files with 10 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue