diff --git a/protobuf/runtime/src/com/google/protobuf/ExtensionRegistryLite.h b/protobuf/runtime/src/com/google/protobuf/ExtensionRegistryLite.h index e96cce6bd1..3e245c5e13 100644 --- a/protobuf/runtime/src/com/google/protobuf/ExtensionRegistryLite.h +++ b/protobuf/runtime/src/com/google/protobuf/ExtensionRegistryLite.h @@ -43,6 +43,9 @@ typedef ComGoogleProtobufExtensionRegistryLite CGPExtensionRegistryLite; +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnullability-completeness" + @interface ComGoogleProtobufExtensionRegistryLite : NSObject + (ComGoogleProtobufExtensionRegistryLite *)getEmptyRegistry; @@ -53,6 +56,11 @@ typedef ComGoogleProtobufExtensionRegistryLite CGPExtensionRegistryLite; @end +@compatibility_alias KNPComGoogleProtobufExtensionRegistryLite + ComGoogleProtobufExtensionRegistryLite; +@compatibility_alias KNPComGoogleProtobufExtensionRegistryLiteCompanion + ComGoogleProtobufExtensionRegistryLite; + J2OBJC_STATIC_INIT(ComGoogleProtobufExtensionRegistryLite) J2OBJC_TYPE_LITERAL_HEADER(ComGoogleProtobufExtensionRegistryLite) @@ -78,4 +86,6 @@ ComGoogleProtobufExtensionRegistryLite *new_ComGoogleProtobufExtensionRegistryLi CF_EXTERN_C_END +#pragma clang diagnostic pop + #endif // __ComGoogleProtobufExtensionRegistryLite_H__ diff --git a/protobuf/runtime/src/com/google/protobuf/GeneratedMessage.h b/protobuf/runtime/src/com/google/protobuf/GeneratedMessage.h index 4893bf7501..2b4457f376 100644 --- a/protobuf/runtime/src/com/google/protobuf/GeneratedMessage.h +++ b/protobuf/runtime/src/com/google/protobuf/GeneratedMessage.h @@ -40,13 +40,13 @@ #include "com/google/protobuf/AbstractMessage.h" #include "com/google/protobuf/Extension.h" +#include "com/google/protobuf/ExtensionRegistryLite.h" #include "com/google/protobuf/Message.h" #include "com/google/protobuf/MessageOrBuilder.h" #include "com/google/protobuf/common.h" @class ComGoogleProtobufByteString; @class ComGoogleProtobufDescriptors_FieldDescriptor; -@class ComGoogleProtobufExtensionRegistryLite; @class ComGoogleProtobufGeneratedMessage_GeneratedExtension; struct CGPFieldData;