On Wed, May 17, 2017 at 03:21:13AM +0100, Ken Moffat wrote:
> 
> The attached patch (not sure if attachments on this list are visible
> in the archives, so I'll spell it out: at line 8769 delete i and c
> from unsigned, add them to int on the following line) builds.
> 
Might help if I actually attach it.

-- 
I live in a city. I know sparrows from starlings.  After that
everything is a duck as far as I'm concerned.  -- Monstrous Regiment
Description: Fixes build failure with gcc-7.1 :

dcraw.cc:9245:16: error: call of overloaded 'abs(unsigned int&)' is ambiguous
       if (abs(i) < abs(c)) {

This was a speculative change to get it to build - I have no idea what that
particular hunk of ocde does, but this seems to match the current version of
dcraw.c (9.27).

--- ufraw-0.22/dcraw.cc.orig    2017-05-15 03:52:55.360068631 +0100
+++ ufraw-0.22/dcraw.cc 2017-05-15 04:06:36.962790098 +0100
@@ -8766,8 +8766,8 @@
       "Nikon", "Nokia", "Olympus", "Pentax", "Phase One", "Ricoh",
       "Samsung", "Sigma", "Sinar", "Sony" };
   char head[32], *cp;
-  unsigned fsize, i, c;
-  int hlen, flen, zero_fsize=1;
+  unsigned fsize;
+  int hlen, flen, zero_fsize=1, i, c;
   struct jhead jh;
 
   tiff_flip = flip = filters = UINT_MAX;       /* unknown */
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
ufraw-devel mailing list
ufraw-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ufraw-devel

Reply via email to