ketor commented on PR #2546: URL: https://github.com/apache/brpc/pull/2546#issuecomment-2003754254
`#if GOOGLE_PROTOBUF_VERSION < 4025000 for (int tag_number = ext_range->start; tag_number < ext_range->end; ++tag_number) #else for (int tag_number = ext_range->start_number(); tag_number < ext_range->end_number(); ++tag_number) #endif` 在Rocky 8.9的环境实际验证了一下,3.22-3.24版本这个地方都应该维持旧的处理方式,3.25版本开始才改为了start_number()。 所以pb_to_json.cpp:78 和 json_to_pb.cpp:537 的判断都应该改成 GOOGLE_PROTOBUF_VERSION < 4025000 。 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For additional commands, e-mail: dev-h...@brpc.apache.org