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

use flags to fix the compile problem

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