Author: ken
Date: Tue May 16 19:22:33 2017
New Revision: 3558

Log:
Fix ufraw for gcc-7.

Added:
   trunk/ufraw/ufraw-0.22-gcc7-1.patch

Added: trunk/ufraw/ufraw-0.22-gcc7-1.patch
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ trunk/ufraw/ufraw-0.22-gcc7-1.patch Tue May 16 19:22:33 2017        (r3558)
@@ -0,0 +1,27 @@
+Submitted By: Ken Moffat <ken at linuxfromscratch dot org>
+Date: 2017-05-17
+Initial Package Version: 0.22
+Upstream Status: No current maintainer
+Origin: Self, based on a fix in RawTherapee
+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 */
-- 
http://lists.linuxfromscratch.org/listinfo/patches
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to