mirror of https://github.com/grpc/grpc.git
[C++] Fix two compilation warnings in grpcpp/support/proto_buffer_reader.h. (#33635)
Detected with gcc 13: ``` In file included from /data/mwrep/res/osp/Grpc/23-0-0-0/include/grpcpp/impl/proto_utils.h:31, from ./include/generated/gacms.object.grpc.pb.h:18, from ./include/generated/gacms.object.grpc.pb.cc:6: /data/mwrep/res/osp/Grpc/23-0-0-0/include/grpcpp/support/proto_buffer_reader.h: In member function 'virtual bool grpc::ProtoBufferReader::ReadCord(absl::lts_20230125::Cord*, int)': /data/mwrep/res/osp/Grpc/23-0-0-0/include/grpcpp/support/proto_buffer_reader.h:157:24: error: comparison of integer expressions of different signedness: 'uint64_t' {aka 'long unsigned int'} and 'int' [-Werror=sign-compare] 157 | if (slice_length <= count) { | ~~~~~~~~~~~~~^~~~~~~~ /data/mwrep/res/osp/Grpc/23-0-0-0/include/grpcpp/support/proto_buffer_reader.h: In lambda function: /data/mwrep/res/osp/Grpc/23-0-0-0/include/grpcpp/support/proto_buffer_reader.h:191:35: warning: unused parameter 'view' [-Wunused-parameter] 191 | [slice](absl::string_view view) { grpc_slice_unref(slice); }); | ~~~~~~~~~~~~~~~~~~^~~~ cc1plus: all warnings being treated as errors ```pull/33269/head
parent
fe11ec9bcb
commit
899bf72004
1 changed files with 2 additions and 2 deletions
Loading…
Reference in new issue