Address Misc Warnings (#2698)

* Address compiler warnings

* Typo
This commit is contained in:
Adlai Holler
2016-12-02 14:04:05 -08:00
committed by appleguy
parent 9706b85145
commit 1997073802
3 changed files with 5 additions and 3 deletions

View File

@@ -123,7 +123,8 @@
{
__weak __typeof__(self) weakSelf = self;
ASDisplayNodeViewBlock collectionViewBlock = ^UIView *{
__typeof__(self) strongSelf = weakSelf;
// Variable will be unused if event logging is off.
__unused __typeof__(self) strongSelf = weakSelf;
return [[ASCollectionView alloc] _initWithFrame:frame collectionViewLayout:layout layoutFacilitator:layoutFacilitator eventLog:ASDisplayNodeGetEventLog(strongSelf)];
};