summaryrefslogtreecommitdiff
path: root/cpp/src/slice2javae/Gen.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2006-01-06 18:16:35 +0000
committerBenoit Foucher <benoit@zeroc.com>2006-01-06 18:16:35 +0000
commite278e1613a0cc442b316ba26914dcf26a8e8243f (patch)
tree8225ce18fc89466b6c3ead500199085f2eb6a221 /cpp/src/slice2javae/Gen.cpp
parentFixing a bug where the makebindist script wasn't makedist'ing vb (diff)
downloadice-e278e1613a0cc442b316ba26914dcf26a8e8243f.tar.bz2
ice-e278e1613a0cc442b316ba26914dcf26a8e8243f.tar.xz
ice-e278e1613a0cc442b316ba26914dcf26a8e8243f.zip
Fixed SunOS C++ compiler warnings (bug 723)
Diffstat (limited to 'cpp/src/slice2javae/Gen.cpp')
-rw-r--r--cpp/src/slice2javae/Gen.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/cpp/src/slice2javae/Gen.cpp b/cpp/src/slice2javae/Gen.cpp
index 69e06826012..b43c0f1049d 100644
--- a/cpp/src/slice2javae/Gen.cpp
+++ b/cpp/src/slice2javae/Gen.cpp
@@ -371,7 +371,6 @@ Slice::JavaVisitor::writeDispatch(Output& out, const ClassDefPtr& p)
//
// The operation is not defined in this class.
//
- ClassList bases = p->bases();
if(!bases.empty())
{
//
@@ -843,8 +842,8 @@ Slice::Gen::OpsVisitor::writeOperations(const ClassDefPtr& p, bool noCurrent)
OperationPtr op = *r;
ContainerPtr container = op->container();
ClassDefPtr cl = ClassDefPtr::dynamicCast(container);
- string name = op->name();
-
+ string opname = op->name();
+
TypePtr ret;
vector<string> params;
@@ -856,7 +855,7 @@ Slice::Gen::OpsVisitor::writeOperations(const ClassDefPtr& p, bool noCurrent)
ExceptionList throws = op->throws();
throws.sort();
throws.unique();
- out << sp << nl << retS << ' ' << fixKwd(name) << spar << params;
+ out << sp << nl << retS << ' ' << fixKwd(opname) << spar << params;
if(!noCurrent && !p->isLocal())
{
out << "Ice.Current __current";