mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-07 13:09:49 +00:00
Fix building test / profile under Xcode 7
It is strictly enforcing this unused variable (when asserts are compiled out).
This commit is contained in:
parent
a6dba104df
commit
a8924a2977
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user