pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/spiralloops Fixed g++ 4 error messages.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/867038be91e6
branches:  trunk
changeset: 533753:867038be91e6
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sat Sep 29 11:38:22 2007 +0000

description:
Fixed g++ 4 error messages.

diffstat:

 audio/spiralloops/distinfo         |   3 ++-
 audio/spiralloops/patches/patch-ar |  31 +++++++++++++++++++++++++++++++
 2 files changed, 33 insertions(+), 1 deletions(-)

diffs (49 lines):

diff -r f5dce35204d9 -r 867038be91e6 audio/spiralloops/distinfo
--- a/audio/spiralloops/distinfo        Sat Sep 29 11:35:11 2007 +0000
+++ b/audio/spiralloops/distinfo        Sat Sep 29 11:38:22 2007 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.9 2006/01/05 15:35:07 joerg Exp $
+$NetBSD: distinfo,v 1.10 2007/09/29 11:38:22 rillig Exp $
 
 SHA1 (SpiralLoops-2.0.0.tar.gz) = 47d9caa17f20827abef7708bff212bb3fad58a72
 RMD160 (SpiralLoops-2.0.0.tar.gz) = b164bacf6d18128111959dbca079883b7fde8d85
@@ -20,3 +20,4 @@
 SHA1 (patch-ao) = fb30e505afb754536a07f0537109ceaeb343a5e4
 SHA1 (patch-ap) = adde17445fa15afa122dc1addf0c06f6504bef0c
 SHA1 (patch-aq) = 3f21e84fcbc911ebaf3bb60009f7f0b4b60c801a
+SHA1 (patch-ar) = 39e110d78bac2d704ef6f2e6d27f3f36058d46bf
diff -r f5dce35204d9 -r 867038be91e6 audio/spiralloops/patches/patch-ar
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/spiralloops/patches/patch-ar        Sat Sep 29 11:38:22 2007 +0000
@@ -0,0 +1,31 @@
+$NetBSD: patch-ar,v 1.1 2007/09/29 11:38:22 rillig Exp $
+
+g++ 4 enforces cleaner code.
+
+--- SpiralSound/Sample.h.orig  2001-04-19 22:48:13.000000000 +0200
++++ SpiralSound/Sample.h       2007-09-29 13:36:09.000000000 +0200
+@@ -63,13 +63,13 @@ public:
+       void Shrink(int Length);
+       void CropTo(int NewLength);
+ 
+-      inline short &Sample::operator[](int i) const
++      inline short &operator[](int i) const
+       {
+               assert(i>=0 && i<m_Length);
+               return m_Data[i];
+       }
+ 
+-      inline void Sample::Set(int i, long int v) 
++      inline void Set(int i, long int v) 
+       {       
+               assert(i>=0 && i<m_Length);
+               // clip
+@@ -79,7 +79,7 @@ public:
+               m_Data[i]=(short)v;
+       }       
+       
+-      inline Sample &Sample::operator=(const Sample &rhs)
++      inline Sample &operator=(const Sample &rhs)
+       {
+               Allocate(rhs.GetLength());              
+               memcpy(m_Data,rhs.GetBuffer(),GetLengthInBytes());



Home | Main Index | Thread Index | Old Index