diff options
author | Benoit Foucher <benoit@zeroc.com> | 2006-01-06 18:16:35 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2006-01-06 18:16:35 +0000 |
commit | e278e1613a0cc442b316ba26914dcf26a8e8243f (patch) | |
tree | 8225ce18fc89466b6c3ead500199085f2eb6a221 /cpp/src/slice2java/Gen.cpp | |
parent | Fixing a bug where the makebindist script wasn't makedist'ing vb (diff) | |
download | ice-e278e1613a0cc442b316ba26914dcf26a8e8243f.tar.bz2 ice-e278e1613a0cc442b316ba26914dcf26a8e8243f.tar.xz ice-e278e1613a0cc442b316ba26914dcf26a8e8243f.zip |
Fixed SunOS C++ compiler warnings (bug 723)
Diffstat (limited to 'cpp/src/slice2java/Gen.cpp')
-rw-r--r-- | cpp/src/slice2java/Gen.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cpp/src/slice2java/Gen.cpp b/cpp/src/slice2java/Gen.cpp index b4beb679591..28a361c6a95 100644 --- a/cpp/src/slice2java/Gen.cpp +++ b/cpp/src/slice2java/Gen.cpp @@ -482,7 +482,6 @@ Slice::JavaVisitor::writeDispatch(Output& out, const ClassDefPtr& p) // // The operation is not defined in this class. // - ClassList bases = p->bases(); if(!bases.empty()) { // @@ -1112,7 +1111,7 @@ 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; @@ -1134,7 +1133,7 @@ Slice::Gen::OpsVisitor::writeOperations(const ClassDefPtr& p, bool noCurrent) ExceptionList throws = op->throws(); throws.sort(); throws.unique(); - out << sp << nl << retS << ' ' << (amd ? name + "_async" : fixKwd(name)) << spar << params; + out << sp << nl << retS << ' ' << (amd ? opname + "_async" : fixKwd(opname)) << spar << params; if(!noCurrent && !p->isLocal()) { out << "Ice.Current __current"; @@ -2080,7 +2079,6 @@ Slice::Gen::TypesVisitor::visitExceptionEnd(const ExceptionPtr& p) // // Emit placeholder functions to catch errors. // - string scoped = p->scoped(); out << sp << nl << "public void" << nl << "__write(Ice.OutputStream __outS)"; out << sb; out << nl << "Ice.MarshalException ex = new Ice.MarshalException();"; |