pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc/chasen-base Re: PR 25715 Compilation error wi...
details: https://anonhg.NetBSD.org/pkgsrc/rev/7396f3c29cb1
branches: trunk
changeset: 475999:7396f3c29cb1
user: shannonjr <shannonjr%pkgsrc.org@localhost>
date: Tue Jun 01 08:23:29 2004 +0000
description:
Re: PR 25715 Compilation error with gcc 3.4.0
dartsdic.cpp:180: error: ISO C++ forbids cast to non-reference type used
as lvalue
The patch corrects the compilation error by rewriting the cast without
changing the meaning of the statement. This closes the PR.
diffstat:
textproc/chasen-base/distinfo | 3 ++-
textproc/chasen-base/patches/patch-al | 13 +++++++++++++
2 files changed, 15 insertions(+), 1 deletions(-)
diffs (31 lines):
diff -r ef18af5a88bb -r 7396f3c29cb1 textproc/chasen-base/distinfo
--- a/textproc/chasen-base/distinfo Tue Jun 01 08:03:10 2004 +0000
+++ b/textproc/chasen-base/distinfo Tue Jun 01 08:23:29 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2004/05/06 13:32:38 taca Exp $
+$NetBSD: distinfo,v 1.4 2004/06/01 08:23:29 shannonjr Exp $
SHA1 (chasen-2.3.3.tar.gz) = 711f5717ee284d26aa5616292f7aaffaef11d03a
Size (chasen-2.3.3.tar.gz) = 425981 bytes
@@ -11,3 +11,4 @@
SHA1 (patch-ai) = 7a9ffd640c275c1361e34591d08c1ce519df5dc7
SHA1 (patch-aj) = 8c440610abaa31b22950ef41149736feefc968e8
SHA1 (patch-ak) = 05afdb444ef6a59cb2f9c86617b6dba8332ac5f3
+SHA1 (patch-al) = a1069b648d7c352923dd27a193f93b87b4bf3e8a
diff -r ef18af5a88bb -r 7396f3c29cb1 textproc/chasen-base/patches/patch-al
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/chasen-base/patches/patch-al Tue Jun 01 08:23:29 2004 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-al,v 1.1 2004/06/01 08:23:29 shannonjr Exp $
+
+--- lib/dartsdic.cpp.orig 2003-07-30 10:06:57.000000000 -0600
++++ lib/dartsdic.cpp
+@@ -177,7 +177,7 @@ da_build_dump(da_build_t* builder, char*
+ lex_indices.push_back(i->second);
+ }
+ lens[size] = key.size();
+- (const char*)keys[size] = key.data();
++ keys[size] = const_cast<char*>(key.data());
+ vals[size] = redump_lex(lens[size], lex_indices, tmpfile, lexfile);
+ if (vals[size] < 0) {
+ std::cerr << "Unexpected error at " << key << std::endl;
Home |
Main Index |
Thread Index |
Old Index