opencv / ade

Apache License 2.0
59 stars 49 forks source link

Silence redundant-move warning #15

Closed xerus closed 5 years ago

xerus commented 5 years ago

Happens with gcc-9.1

/home/pgrunt/src/ade/sources/ade/source/execution_engine.cpp: In member function ‘std::unique_ptr<ade::Executable> ade::ExecutionEngine::createExecutable(const ade::Graph&)’:
/home/pgrunt/src/ade/sources/ade/source/execution_engine.cpp:141:21: error: redundant move in return statement [-Werror=redundant-move]
  141 |     return std::move(ret);
      |            ~~~~~~~~~^~~~~
dmatveev commented 5 years ago

Pavel, thanks!

@Hardcode84 Ivan please have a look :)