Silence deprecation warnings on FileDescriptor::SyntaxName

PiperOrigin-RevId: 527600194
23.0-rc2-patch
Mike Kruskal 2 years ago committed by Deanna Garcia
parent 433c35dbcb
commit e67e58a8e9
  1. 2
      src/google/protobuf/descriptor.cc

@ -825,6 +825,7 @@ const char* const FieldDescriptor::kLabelToName[MAX_LABEL + 1] = {
"repeated", // LABEL_REPEATED
};
PROTOBUF_IGNORE_DEPRECATION_START
const char* FileDescriptor::SyntaxName(FileDescriptor::Syntax syntax) {
switch (syntax) {
case SYNTAX_PROTO2:
@ -837,6 +838,7 @@ const char* FileDescriptor::SyntaxName(FileDescriptor::Syntax syntax) {
ABSL_LOG(FATAL) << "can't reach here.";
return nullptr;
}
PROTOBUF_IGNORE_DEPRECATION_STOP
static const char* const kNonLinkedWeakMessageReplacementName = "google.protobuf.Empty";

Loading…
Cancel
Save