Silence deprecation warnings on FileDescriptor::SyntaxName

PiperOrigin-RevId: 527600194
diff --git a/src/google/protobuf/descriptor.cc b/src/google/protobuf/descriptor.cc
index 51b6dd9..0d77da5 100644
--- a/src/google/protobuf/descriptor.cc
+++ b/src/google/protobuf/descriptor.cc
@@ -825,6 +825,7 @@
     "repeated",  // LABEL_REPEATED
 };
 
+PROTOBUF_IGNORE_DEPRECATION_START
 const char* FileDescriptor::SyntaxName(FileDescriptor::Syntax syntax) {
   switch (syntax) {
     case SYNTAX_PROTO2:
@@ -837,6 +838,7 @@
   ABSL_LOG(FATAL) << "can't reach here.";
   return nullptr;
 }
+PROTOBUF_IGNORE_DEPRECATION_STOP
 
 static const char* const kNonLinkedWeakMessageReplacementName = "google.protobuf.Empty";