protoc-disable-syntax-warning.patch 682 B

1234567891011121314
  1. --- a/src/google/protobuf/compiler/parser.cc (index)
  2. +++ b/src/google/protobuf/compiler/parser.cc (working tree)
  3. @@ -670,11 +670,6 @@ bool Parser::Parse(io::Tokenizer* input, FileDescriptorProto* file) {
  4. file->set_syntax(syntax_identifier_);
  5. }
  6. } else if (!stop_after_syntax_identifier_) {
  7. - ABSL_LOG(WARNING) << "No syntax specified for the proto file: "
  8. - << file->name()
  9. - << ". Please use 'syntax = \"proto2\";' "
  10. - << "or 'syntax = \"proto3\";' to specify a syntax "
  11. - << "version. (Defaulted to proto2 syntax.)";
  12. syntax_identifier_ = "proto2";
  13. }