Code

NMU version 1.8.1-1.1.
[pkg-pfstools.git] / debian / patches / gcc-4.4.dpatch
diff --git a/debian/patches/gcc-4.4.dpatch b/debian/patches/gcc-4.4.dpatch
new file mode 100644 (file)
index 0000000..e84dce1
--- /dev/null
@@ -0,0 +1,21 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## gcc-4.4.dpatch by Fabrice Coutadeur <fabricesp@ubuntu.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Fix compilation error with GCC 4.4. Fix get from http://sourceforge.net/tracker/index.php?func=detail&aid=2848391&group_id=129921&atid=716245
+## DP: Rationale (by zack@debian.org): the "name" argument is in fact *not* used as "const"
+## DP: Closes: #554494
+
+@DPATCH@
+diff -urNad pfstools-1.8.1~/src/filter/pfspanoramic.cpp pfstools-1.8.1/src/filter/pfspanoramic.cpp
+--- pfstools-1.8.1~/src/filter/pfspanoramic.cpp        2008-07-29 16:14:30.000000000 +0000
++++ pfstools-1.8.1/src/filter/pfspanoramic.cpp 2009-09-10 20:11:29.000000000 +0000
+@@ -191,7 +191,7 @@
+       singleton.projections[ string( name ) ] = ptr;
+     }
+-    static Projection *getProjection(const char *name)
++    static Projection *getProjection(char *name)
+     {
+       char *opts;
+