use flags to fix the compile problem

release/0.13.0
qiaolongfei 7 years ago
parent 4736281c5c
commit 8868a54d5f

@ -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() {
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()?

Loading…
Cancel
Save