diff --git a/objectivec/GPBUtilities.m b/objectivec/GPBUtilities.m index b72d0e2de3..cd0910c577 100644 --- a/objectivec/GPBUtilities.m +++ b/objectivec/GPBUtilities.m @@ -2248,7 +2248,7 @@ void GPBMaybeClearOneof(GPBMessage *self, GPBOneofDescriptor *oneof, NSCAssert([[self descriptor] oneofWithName:oneof.name] == oneof, @"OneofDescriptor %@ doesn't appear to be for %@ messages.", oneof.name, [self class]); - GPBFieldDescriptor *firstField = oneof->fields_[0]; + GPBFieldDescriptor *firstField __unused = oneof->fields_[0]; NSCAssert(firstField->description_->hasIndex == oneofHasIndex, @"Internal error, oneofHasIndex (%d) doesn't match (%d).", firstField->description_->hasIndex, oneofHasIndex);