Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit a8924a2

Browse files
author
Scott Goodson
committed
Fix building test / profile under Xcode 7
It is strictly enforcing this unused variable (when asserts are compiled out).
1 parent a6dba10 commit a8924a2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

AsyncDisplayKit/Layout/ASLayout.mm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ + (instancetype)layoutWithLayoutableObject:(id<ASLayoutable>)layoutableObject
2828
sublayouts:(NSArray *)sublayouts
2929
{
3030
ASDisplayNodeAssert(layoutableObject, @"layoutableObject is required.");
31+
#if DEBUG
3132
for (ASLayout *sublayout in sublayouts) {
3233
ASDisplayNodeAssert(!CGPointIsNull(sublayout.position), @"Invalid position is not allowed in sublayout.");
3334
}
35+
#endif
3436

3537
ASLayout *l = [super new];
3638
if (l) {

0 commit comments

Comments
 (0)