File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -153,9 +153,13 @@ + (instancetype)allocDescriptorForClass:(Class)messageClass
153
153
GPBFieldFlags unknownFieldFlags = (GPBFieldFlags)(~(
154
154
GPBFieldRequired | GPBFieldRepeated | GPBFieldPacked | GPBFieldHasDefaultValue |
155
155
GPBFieldClearHasIvarOnZero | GPBFieldTextFormatNameCustom | GPBFieldMapKeyMask));
156
+ #if GOOGLE_PROTOBUF_OBJC_MIN_SUPPORTED_VERSION > 40310
157
+ #error "Time to remove these methods"
158
+ #else
156
159
if (runtimeSupport == &GOOGLE_PROTOBUF_OBJC_EXPECTED_GENCODE_VERSION_40310) {
157
160
unknownFieldFlags &= ~GPBFieldOptional; // Allow 40310 to still have GPBFieldOptional.
158
161
}
162
+ #endif
159
163
NSAssert ((mergedFieldFlags & unknownFieldFlags) == 0, @"Internal error: unknown field flags set");
160
164
#pragma clang diagnostic pop
161
165
#endif // defined(DEBUG) && DEBUG
You can’t perform that action at this time.
0 commit comments