diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2009-10-02 16:56:30 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2009-10-02 16:56:30 -0230 |
commit | 60015160ad9c3540c81d4281ebc0806a6281cace (patch) | |
tree | 3a52c3bdf6d1db4f6476b3522588521cd1eac3b7 /cpp/src/slice2cpp/Gen.cpp | |
parent | Remove commented code (diff) | |
download | ice-60015160ad9c3540c81d4281ebc0806a6281cace.tar.bz2 ice-60015160ad9c3540c81d4281ebc0806a6281cace.tar.xz ice-60015160ad9c3540c81d4281ebc0806a6281cace.zip |
Resolve some BCC compiler warnings
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rw-r--r-- | cpp/src/slice2cpp/Gen.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index 4f40b2ff6d1..7ba4f20251e 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -5667,6 +5667,18 @@ Slice::Gen::AsyncImplVisitor::visitOperation(const OperationPtr& p) if(!throws.empty()) { H << nl << "virtual void ice_exception(const ::std::exception&);"; + + H.zeroIndent(); + H << nl << "#if defined(__BCPLUSPLUS__)"; + H.restoreIndent(); + H << nl << "// COMPILERFIX: Avoid compiler warnings with C++Builder 2010"; + H << nl << "virtual void ice_exception()"; + H << sb; + H << nl << "::IceInternal::IncomingAsync::ice_exception();"; + H << eb; + H.zeroIndent(); + H << nl << "#endif"; + H.restoreIndent(); } H << eb << ';'; |