From 8511656f46b065dcd403c3c8c7a1b8a85ca8200d Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EB=B0=95=EC=A2=85=ED=98=84/=EB=8F=99=EC=9E=91=EC=A0=9C?= =?utf8?q?=EC=96=B4Lab=28SR=29/Staff=20Engineer/=EC=82=BC=EC=84=B1?= =?utf8?q?=EC=A0=84=EC=9E=90?= Date: Fri, 24 Aug 2018 11:40:02 +0900 Subject: [PATCH] [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 --- contrib/enco/core/src/CppCode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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("}"); -- 2.7.4