summaryrefslogtreecommitdiff
path: root/cpp/src/slice2objc
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2018-01-23 12:30:34 -0500
committerBernard Normier <bernard@zeroc.com>2018-01-23 12:30:34 -0500
commita03cc8a25e9550e09090fea370d1af86df1a6aff (patch)
treebb7ae4a376a9e638a99b29c05d8abc2d7b7a92e9 /cpp/src/slice2objc
parentUpdated UWP test controller certificate (diff)
downloadice-a03cc8a25e9550e09090fea370d1af86df1a6aff.tar.bz2
ice-a03cc8a25e9550e09090fea370d1af86df1a6aff.tar.xz
ice-a03cc8a25e9550e09090fea370d1af86df1a6aff.zip
Added strict prototypes (ICE-8613)
Diffstat (limited to 'cpp/src/slice2objc')
-rw-r--r--cpp/src/slice2objc/Gen.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/src/slice2objc/Gen.cpp b/cpp/src/slice2objc/Gen.cpp
index 1c4b7e58943..55a587bb441 100644
--- a/cpp/src/slice2objc/Gen.cpp
+++ b/cpp/src/slice2objc/Gen.cpp
@@ -579,6 +579,10 @@ Slice::ObjCVisitor::getResponseCBSig(const OperationPtr& op) const
result += outTypeToString(type, (*q)->optional());
}
}
+ if(result.empty())
+ {
+ result = "void";
+ }
return "void(^)(" + result + ")";
}