From: 박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 Date: Fri, 24 Aug 2018 02:40:02 +0000 (+0900) Subject: [enco] Emit missing return (#1178) X-Git-Tag: nncc_backup~2060 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8511656f46b065dcd403c3c8c7a1b8a85ca8200d;p=platform%2Fcore%2Fml%2Fnnfw.git [enco] Emit missing return (#1178) Network_input_count and Network_output_count emitted by the current implementation does not have "return". Signed-off-by: Jonghyun Park --- diff --git a/contrib/enco/core/src/CppCode.cpp b/contrib/enco/core/src/CppCode.cpp index 266ebf3..0b689e8 100644 --- a/contrib/enco/core/src/CppCode.cpp +++ b/contrib/enco/core/src/CppCode.cpp @@ -133,7 +133,7 @@ void CppCode::dump(std::ostream &os) const // Emit Network_input_count function source.append("unsigned ", name, "_input_count(const ", name, " *net) {"); source.indent(); - source.append("net->inputs.size();"); + source.append("return net->inputs.size();"); source.unindent(); source.append("}"); @@ -175,7 +175,7 @@ void CppCode::dump(std::ostream &os) const // Emit Network_output_count function source.append("unsigned ", name, "_output_count(const ", name, " *net) {"); source.indent(); - source.append("net->outputs.size();"); + source.append("return net->outputs.size();"); source.unindent(); source.append("}");