pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/games/xmahjongg Make it compile with gcc 4.x again
details: https://anonhg.NetBSD.org/pkgsrc/rev/5e2d897f73aa
branches: trunk
changeset: 521327:5e2d897f73aa
user: martin <martin%pkgsrc.org@localhost>
date: Thu Nov 09 13:45:33 2006 +0000
description:
Make it compile with gcc 4.x again
diffstat:
games/xmahjongg/distinfo | 4 ++--
games/xmahjongg/patches/patch-ac | 12 ++++++------
2 files changed, 8 insertions(+), 8 deletions(-)
diffs (42 lines):
diff -r f1969fb4c95d -r 5e2d897f73aa games/xmahjongg/distinfo
--- a/games/xmahjongg/distinfo Thu Nov 09 13:26:36 2006 +0000
+++ b/games/xmahjongg/distinfo Thu Nov 09 13:45:33 2006 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.7 2006/11/05 18:46:57 rillig Exp $
+$NetBSD: distinfo,v 1.8 2006/11/09 13:45:33 martin Exp $
SHA1 (xmahjongg-3.6.1.tar.gz) = 35e380e53412568e6af7f4fcc1677693f52fc60e
RMD160 (xmahjongg-3.6.1.tar.gz) = acfc0161322b22296639dff313bae8d57e012618
Size (xmahjongg-3.6.1.tar.gz) = 462833 bytes
SHA1 (patch-aa) = 5305cfb0c0c8c0fcc507bc3730043331255a94a5
SHA1 (patch-ab) = d3c2574c8de7e85c8e38670017d0eda64fe3b0be
-SHA1 (patch-ac) = f8ea278393d81ad0503350f88c7b3a352b78bf22
+SHA1 (patch-ac) = ea3083eff9216833153c1ad68e31a4282938e9d9
diff -r f1969fb4c95d -r 5e2d897f73aa games/xmahjongg/patches/patch-ac
--- a/games/xmahjongg/patches/patch-ac Thu Nov 09 13:26:36 2006 +0000
+++ b/games/xmahjongg/patches/patch-ac Thu Nov 09 13:45:33 2006 +0000
@@ -1,18 +1,18 @@
-$NetBSD: patch-ac,v 1.1 2006/11/05 18:46:58 rillig Exp $
+$NetBSD: patch-ac,v 1.2 2006/11/09 13:45:33 martin Exp $
SunPro sees an overloading ambiguity between operator bool() and
-operator const char *().
+operator const char *(). ISO C++ and gcc 4.2 agree.
--- permstr.cc.orig 2001-09-06 20:30:10.000000000 +0200
-+++ permstr.cc 2006-11-05 19:12:50.020399608 +0100
-@@ -183,8 +183,8 @@ PermString::static_initialize()
++++ permstr.cc 2006-11-09 14:35:55.000000000 +0100
+@@ -183,8 +183,8 @@
bool
operator==(PermString a, const char *b)
{
- if (!a || !b)
- return !a && !b;
-+ if (a == false || !b)
-+ return (a == false) && !b;
++ if (operator==(a, false) || !b)
++ return (operator==(a, false)) && !b;
int l = strlen(b);
return a.length() == l && memcmp(a.cc(), b, l) == 0;
}
Home |
Main Index |
Thread Index |
Old Index