Fix building test / profile under Xcode 7

It is strictly enforcing this unused variable (when asserts are compiled out).
This commit is contained in:
Scott Goodson 2015-09-19 20:55:40 +02:00
parent a6dba104df
commit a8924a2977

View File

@ -28,9 +28,11 @@ extern BOOL CGPointIsNull(CGPoint point)
sublayouts:(NSArray *)sublayouts
{
ASDisplayNodeAssert(layoutableObject, @"layoutableObject is required.");
#if DEBUG
for (ASLayout *sublayout in sublayouts) {
ASDisplayNodeAssert(!CGPointIsNull(sublayout.position), @"Invalid position is not allowed in sublayout.");
}
#endif
ASLayout *l = [super new];
if (l) {