summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cpp/Gen.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2006-01-24 00:08:35 +0000
committerBernard Normier <bernard@zeroc.com>2006-01-24 00:08:35 +0000
commitb78992bd696105626fc2e0f69fba018d5de4c36f (patch)
treea631acbbb3c0d0efe2c54b82172ecc9fd0102103 /cpp/src/slice2cpp/Gen.cpp
parentFixed HP warning (diff)
downloadice-b78992bd696105626fc2e0f69fba018d5de4c36f.tar.bz2
ice-b78992bd696105626fc2e0f69fba018d5de4c36f.tar.xz
ice-b78992bd696105626fc2e0f69fba018d5de4c36f.zip
Removed HP warnings
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rw-r--r--cpp/src/slice2cpp/Gen.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp
index b94cdc7719c..81f34a76f51 100644
--- a/cpp/src/slice2cpp/Gen.cpp
+++ b/cpp/src/slice2cpp/Gen.cpp
@@ -2152,6 +2152,10 @@ Slice::Gen::DelegateDVisitor::visitOperation(const OperationPtr& p)
C << sp << nl << retS << nl << "IceDelegateD" << scoped << spar << params << epar;
C << sb;
C << nl << "throw ::Ice::CollocationOptimizationException(__FILE__, __LINE__);";
+ if(ret != 0)
+ {
+ C << nl << "return " << retS << "(); // to avoid a warning with some compilers;";
+ }
C << eb;
}
else
@@ -2510,6 +2514,7 @@ Slice::Gen::ObjectVisitor::visitClassDefStart(const ClassDefPtr& p)
else
{
C << nl << "throw ::Ice::CloneNotImplementedException(__FILE__, __LINE__);";
+ C << nl << "return 0; // to avoid a warning with some compilers";
}
C << eb;