From 0d782735ab0fe91bc5ea15c9304e394a6e071a7b Mon Sep 17 00:00:00 2001 From: =?utf8?q?=D0=A0=D0=BE=D0=BC=D0=B0=D0=BD=20=D0=9C=D0=B8=D1=85=D0=B0?= =?utf8?q?=D0=B9=D0=BB=D0=BE=D0=B2=D0=B8=D1=87=20=D0=A0=D1=83=D1=81=D1=8F?= =?utf8?q?=D0=B5=D0=B2/AI=20Tools=20Lab=20/SRR/Staff=20Engineer/=EC=82=BC?= =?utf8?q?=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Thu, 6 Sep 2018 11:24:14 +0300 Subject: [PATCH] Fix build bug: remove conflicting declaration (#1384) * remove conflicting declaration in interpreter Signed-off-by: Roman Rusyaev --- contrib/nnc/plugin/interpreter/interpreter_plugin.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/contrib/nnc/plugin/interpreter/interpreter_plugin.cpp b/contrib/nnc/plugin/interpreter/interpreter_plugin.cpp index 0d56904..bbde44b 100644 --- a/contrib/nnc/plugin/interpreter/interpreter_plugin.cpp +++ b/contrib/nnc/plugin/interpreter/interpreter_plugin.cpp @@ -124,9 +124,8 @@ TensorVariant InterpreterPlugin::loadInput(const Shape &shape) auto f = fopen(clopt::interInputData.c_str(), "rb"); assert(f && "Cannot open file"); - bool is_error = fseek(f, 0L, SEEK_END); + int is_error = fseek(f, 0L, SEEK_END); assert(!is_error); - (void)is_error; auto len = ftell(f); auto tensorSize = num_elements(shape) * sizeof(float); @@ -141,7 +140,7 @@ TensorVariant InterpreterPlugin::loadInput(const Shape &shape) auto data = new char[len]; auto rlen = fread(data, len, 1, f); assert(rlen == 1); - int is_error = fclose(f); + is_error = fclose(f); assert(is_error != EOF && "Can not close file!"); (void)is_error; -- 2.7.4