Created by: luotao1
There are a lot of -Wsign-compare
warnings, such as http://ci.paddlepaddle.org/viewLog.html?buildId=228790&buildTypeId=YYTest_PrCiCpuPy2&tab=buildLog#_state=79
[10:57:32] /paddle/paddle/fluid/operators/distributed/parameter_send.cc: In function 'paddle::operators::distributed::EP_SPLIT_TABLE_PAIRS paddle::operators::distributed::GetMultiFieldRpcContext(const paddle::operators::distributed::RpcContext&, const paddle::framework::Scope&, int)':
[10:57:32] /paddle/paddle/fluid/operators/distributed/parameter_send.cc:53:58: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
[10:57:32] for (int i = 0; i < rpc_ctx.splited_var_names.size(); i++) {
[10:57:32] ^
[10:57:32] /paddle/paddle/fluid/operators/distributed/parameter_send.cc:58:58: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
[10:57:32] for (int i = 0; i < rpc_ctx.splited_var_names.size(); i++) {
[10:57:32] ^
[10:57:32] /paddle/paddle/fluid/operators/distributed/parameter_prefetch.cc: In function 'void paddle::operators::distributed::prefetchs(const std::vector<std::basic_string<char> >&, const std::vector<std::basic_string<char> >&, const string&, bool, const std::vector<std::basic_string<char> >&, const std::vector<std::basic_string<char> >&, const std::vector<long int>&, const paddle::framework::ExecutionContext&, const paddle::framework::Scope&)':
[10:57:32] /paddle/paddle/fluid/operators/distributed/parameter_prefetch.cc:218:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
[10:57:32] for (int i = 0; i < table_names.size(); i++) {
- make the building log unclean,
- may slow the compile speed, see Can a large number of warnings increase compilation time