summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2019-10-23 14:57:01 +0200
committerJose <jose@zeroc.com>2019-10-23 16:16:46 +0200
commit698051d27b1b2c1eee800fdcfe1bc73072ad5555 (patch)
treea80d5cf2ef5b1fca18445e109cfcbc2fb0935c19 /cpp
parentFixed ./allTests.py bug which would cause unecessary delay when using control... (diff)
downloadice-698051d27b1b2c1eee800fdcfe1bc73072ad5555.tar.bz2
ice-698051d27b1b2c1eee800fdcfe1bc73072ad5555.tar.xz
ice-698051d27b1b2c1eee800fdcfe1bc73072ad5555.zip
Fix for unused parameters in MATLAB generated code - Close #595
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/slice2matlab/Main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/slice2matlab/Main.cpp b/cpp/src/slice2matlab/Main.cpp
index 353556bc814..d5db1c23fc9 100644
--- a/cpp/src/slice2matlab/Main.cpp
+++ b/cpp/src/slice2matlab/Main.cpp
@@ -1838,7 +1838,7 @@ CodeVisitor::visitClassDefStart(const ClassDefPtr& p)
if(!convertMembers.empty())
{
- out << nl << "function r = iceDelayPostUnmarshal(obj)";
+ out << nl << "function r = iceDelayPostUnmarshal(~)";
out.inc();
out << nl << "r = true;";
out.dec();
@@ -2841,7 +2841,7 @@ CodeVisitor::visitExceptionStart(const ExceptionPtr& p)
out.dec();
out << nl << "end";
- out << nl << "function id = ice_id(obj)";
+ out << nl << "function id = ice_id(~)";
out.inc();
out << nl << "id = '" << scoped << "';";
out.dec();