|
|
@ -2248,7 +2248,7 @@ void GPBMaybeClearOneof(GPBMessage *self, GPBOneofDescriptor *oneof, |
|
|
|
NSCAssert([[self descriptor] oneofWithName:oneof.name] == oneof, |
|
|
|
NSCAssert([[self descriptor] oneofWithName:oneof.name] == oneof, |
|
|
|
@"OneofDescriptor %@ doesn't appear to be for %@ messages.", |
|
|
|
@"OneofDescriptor %@ doesn't appear to be for %@ messages.", |
|
|
|
oneof.name, [self class]); |
|
|
|
oneof.name, [self class]); |
|
|
|
GPBFieldDescriptor *firstField = oneof->fields_[0]; |
|
|
|
GPBFieldDescriptor *firstField __unused = oneof->fields_[0]; |
|
|
|
NSCAssert(firstField->description_->hasIndex == oneofHasIndex, |
|
|
|
NSCAssert(firstField->description_->hasIndex == oneofHasIndex, |
|
|
|
@"Internal error, oneofHasIndex (%d) doesn't match (%d).", |
|
|
|
@"Internal error, oneofHasIndex (%d) doesn't match (%d).", |
|
|
|
firstField->description_->hasIndex, oneofHasIndex); |
|
|
|
firstField->description_->hasIndex, oneofHasIndex); |
|
|
|