warning in inference/tests/book/test_helper.h
Created by: luotao1
https://paddleci.ngrok.io/viewLog.html?buildId=27697&buildTypeId=Paddle_PrCi&tab=buildLog
[20:28:37] In file included from /paddle/paddle/inference/tests/book/test_inference_recognize_digits.cc:15:0:
[20:28:37] /paddle/build/third_party/install/gtest/include/gtest/gtest.h: In instantiation of 'testing::AssertionResult testing::internal::CmpHelperEQ(const char*, const char*, const T1&, const T2&) [with T1 = long unsigned int; T2 = int]':
[20:28:37] /paddle/build/third_party/install/gtest/include/gtest/gtest.h:1421:23: required from 'static testing::AssertionResult testing::internal::EqHelper<lhs_is_null_literal>::Compare(const char*, const char*, const T1&, const T2&) [with T1 = long unsigned int; T2 = int; bool lhs_is_null_literal = false]'
[20:28:37] /paddle/paddle/inference/tests/book/test_helper.h:67:3: required from 'void CheckError(paddle::framework::LoDTensor&, paddle::framework::LoDTensor&) [with T = float]'
[20:28:37] /paddle/paddle/inference/tests/book/test_inference_recognize_digits.cc:59:37: required from here
[20:28:37] /paddle/build/third_party/install/gtest/include/gtest/gtest.h:1392:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
[20:28:37] if (lhs == rhs) {
[20:28:37] ^
[20:28:37] In file included from /paddle/paddle/inference/tests/book/test_inference_image_classification.cc:15:0:
[20:28:37] /paddle/build/third_party/install/gtest/include/gtest/gtest.h: In instantiation of 'testing::AssertionResult testing::internal::CmpHelperEQ(const char*, const char*, const T1&, const T2&) [with T1 = long unsigned int; T2 = int]':
[20:28:37] /paddle/build/third_party/install/gtest/include/gtest/gtest.h:1421:23: required from 'static testing::AssertionResult testing::internal::EqHelper<lhs_is_null_literal>::Compare(const char*, const char*, const T1&, const T2&) [with T1 = long unsigned int; T2 = int; bool lhs_is_null_literal = false]'
[20:28:37] /paddle/paddle/inference/tests/book/test_helper.h:67:3: required from 'void CheckError(paddle::framework::LoDTensor&, paddle::framework::LoDTensor&) [with T = float]'
[20:28:37] /paddle/paddle/inference/tests/book/test_inference_image_classification.cc:59:37: required from here
[20:28:37] /paddle/build/third_party/install/gtest/include/gtest/gtest.h:1392:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
[20:28:37] if (lhs == rhs) {
[20:28:37] ^
[20:28:37] In file included from /paddle/paddle/inference/tests/book/test_inference_image_classification.cc:15:0:
[20:28:37] /paddle/build/third_party/install/gtest/include/gtest/gtest.h: In instantiation of 'testing::AssertionResult testing::internal::CmpHelperEQ(const char*, const char*, const T1&, const T2&) [with T1 = long unsigned int; T2 = int]':
[20:28:37] /paddle/build/third_party/install/gtest/include/gtest/gtest.h:1421:23: required from 'static testing::AssertionResult testing::internal::EqHelper<lhs_is_null_literal>::Compare(const char*, const char*, const T1&, const T2&) [with T1 = long unsigned int; T2 = int; bool lhs_is_null_literal = false]'
[20:28:37] /paddle/paddle/inference/tests/book/test_helper.h:67:3: required from 'void CheckError(paddle::framework::LoDTensor&, paddle::framework::LoDTensor&) [with T = float]'
[20:28:37] /paddle/paddle/inference/tests/book/test_inference_image_classification.cc:59:37: required from here
[20:28:37] /paddle/build/third_party/install/gtest/include/gtest/gtest.h:1392:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
[20:28:37] if (lhs == rhs) {
[20:28:37] ^
[20:28:37] In file included from /paddle/paddle/inference/tests/book/test_inference_label_semantic_roles.cc:15:0:
[20:28:37] /paddle/build/third_party/install/gtest/include/gtest/gtest.h: In instantiation of 'testing::AssertionResult testing::internal::CmpHelperEQ(const char*, const char*, const T1&, const T2&) [with T1 = long unsigned int; T2 = int]':
[20:28:37] /paddle/build/third_party/install/gtest/include/gtest/gtest.h:1421:23: required from 'static testing::AssertionResult testing::internal::EqHelper<lhs_is_null_literal>::Compare(const char*, const char*, const T1&, const T2&) [with T1 = long unsigned int; T2 = int; bool lhs_is_null_literal = false]'
[20:28:37] /paddle/paddle/inference/tests/book/test_helper.h:67:3: required from 'void CheckError(paddle::framework::LoDTensor&, paddle::framework::LoDTensor&) [with T = float]'
[20:28:37] /paddle/paddle/inference/tests/book/test_inference_label_semantic_roles.cc:77:37: required from here
[20:28:37] /paddle/build/third_party/install/gtest/include/gtest/gtest.h:1392:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
[20:28:37] if (lhs == rhs) {