提交 8868a54d 编写于 作者: Q qiaolongfei

use flags to fix the compile problem

上级 4736281c
...@@ -13,6 +13,8 @@ ...@@ -13,6 +13,8 @@
# limitations under the License. # limitations under the License.
# #
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=pessimizing-move")
function(inference_api_test TARGET_NAME TEST_SRC DEP_TEST) function(inference_api_test TARGET_NAME TEST_SRC DEP_TEST)
set(options "") set(options "")
set(oneValueArgs "") set(oneValueArgs "")
......
...@@ -141,7 +141,7 @@ std::unique_ptr<PaddlePredictor> PaddlePredictorImpl::Clone() { ...@@ -141,7 +141,7 @@ std::unique_ptr<PaddlePredictor> PaddlePredictorImpl::Clone() {
return nullptr; return nullptr;
} }
// fix manylinux compile error. // fix manylinux compile error.
return cls; return std::move(cls);
} }
// TODO(panyx0718): Consider merge with Init()? // TODO(panyx0718): Consider merge with Init()?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册