Skip to content

Commit

Permalink
Fixed warning which happens with old compilers (which are still supp…
Browse files Browse the repository at this point in the history
…orted in OpenCV) (opencv#17)
  • Loading branch information
AsyaPronina authored and Hardcode84 committed Aug 7, 2019
1 parent ef3af86 commit 58b2595
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sources/ade/source/execution_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ std::unique_ptr<Executable> ExecutionEngine::createExecutable(const Graph& graph
}
}

return ret;
// NB: the below code style is important for different compiler compatibility
return std::unique_ptr<ExecutableImpl>(std::move(ret));
}

void ExecutionEngine::addExecutableDependency(const std::string& lazyPassName)
Expand Down

0 comments on commit 58b2595

Please sign in to comment.