Task #91759 - added.err

back to task #91759
download
Error: COMPILER_WARNING (CWE-195):
protobuf-c-1.5.2/protoc-gen-c/c_message.cc: scope_hint: In member function ‘void protobuf_c::MessageGenerator::GenerateMessageDescriptor(google::protobuf::io::Printer*, bool)’
protobuf-c-1.5.2/protoc-gen-c/c_message.cc:583:30: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’
#  583 |       for (unsigned i = 0; i < descriptor_->field_count(); i++) {
#      |                            ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  581|       if (!optimize_code_size) {
#  582|         std::vector<NameIndex> field_indices;
#  583|->       for (unsigned i = 0; i < descriptor_->field_count(); i++) {
#  584|           field_indices.push_back({ i, sorted_fields[i]->name() });
#  585|         }

Error: COMPILER_WARNING (CWE-195):
protobuf-c-1.5.2/protoc-gen-c/c_service.cc: scope_hint: In member function ‘void protobuf_c::ServiceGenerator::GenerateServiceDescriptor(google::protobuf::io::Printer*)’
protobuf-c-1.5.2/protoc-gen-c/c_service.cc:208:26: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’
#  208 |   for (unsigned i = 0; i < n_methods; i++) {
#      |                        ~~^~~~~~~~~~~
#  206|     printer->Print(vars_, "static const ProtobufCMethodDescriptor $lcfullname$__method_descriptors[$n_methods$] =\n"
#  207|                          "{\n");
#  208|->   for (unsigned i = 0; i < n_methods; i++) {
#  209|       const google::protobuf::MethodDescriptor* method = descriptor_->method(i);
#  210|       vars_["method"] = std::string(method->name());