diff options
author | shannonjr <shannonjr@pkgsrc.org> | 2004-06-01 08:23:29 +0000 |
---|---|---|
committer | shannonjr <shannonjr@pkgsrc.org> | 2004-06-01 08:23:29 +0000 |
commit | ae68b0fb15df2c36c10c89ffe0bf28cbeb6e7226 (patch) | |
tree | 85fda63217a4e7b00540ba05f464e231b72e05d0 /textproc/chasen-base | |
parent | 8ea4f2f10bfb3bcab3bf3e27c83c11190d7dbb4f (diff) | |
download | pkgsrc-ae68b0fb15df2c36c10c89ffe0bf28cbeb6e7226.tar.gz |
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 (limited to 'textproc/chasen-base')
-rw-r--r-- | textproc/chasen-base/distinfo | 3 | ||||
-rw-r--r-- | textproc/chasen-base/patches/patch-al | 13 |
2 files changed, 15 insertions, 1 deletions
diff --git a/textproc/chasen-base/distinfo b/textproc/chasen-base/distinfo index 916d41a480f..3c3add5236a 100644 --- a/textproc/chasen-base/distinfo +++ b/textproc/chasen-base/distinfo @@ -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 @@ Size (chasen-2.3.3.20031024.patch) = 1095 bytes SHA1 (patch-ai) = 7a9ffd640c275c1361e34591d08c1ce519df5dc7 SHA1 (patch-aj) = 8c440610abaa31b22950ef41149736feefc968e8 SHA1 (patch-ak) = 05afdb444ef6a59cb2f9c86617b6dba8332ac5f3 +SHA1 (patch-al) = a1069b648d7c352923dd27a193f93b87b4bf3e8a diff --git a/textproc/chasen-base/patches/patch-al b/textproc/chasen-base/patches/patch-al new file mode 100644 index 00000000000..e2fd1e580ba --- /dev/null +++ b/textproc/chasen-base/patches/patch-al @@ -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; |