Fix "This block and function declaration is not a prototype" warning. (#619)

This commit is contained in:
Mustafa Besnili
2017-10-17 16:18:23 +03:00
committed by Huy Nguyen
parent 72d33fc88e
commit 1e7d46196f
17 changed files with 48 additions and 48 deletions

View File

@@ -36,17 +36,17 @@ NS_ASSUME_NONNULL_BEGIN
/**
* UIView creation block. Used to create the backing view of a new display node.
*/
typedef UIView * _Nonnull(^ASDisplayNodeViewBlock)();
typedef UIView * _Nonnull(^ASDisplayNodeViewBlock)(void);
/**
* UIView creation block. Used to create the backing view of a new display node.
*/
typedef UIViewController * _Nonnull(^ASDisplayNodeViewControllerBlock)();
typedef UIViewController * _Nonnull(^ASDisplayNodeViewControllerBlock)(void);
/**
* CALayer creation block. Used to create the backing layer of a new display node.
*/
typedef CALayer * _Nonnull(^ASDisplayNodeLayerBlock)();
typedef CALayer * _Nonnull(^ASDisplayNodeLayerBlock)(void);
/**
* ASDisplayNode loaded callback block. This block is called BEFORE the -didLoad method and is always called on the main thread.
@@ -880,7 +880,7 @@ extern NSInteger const ASDefaultDrawingPriority;
- (void)transitionLayoutWithSizeRange:(ASSizeRange)constrainedSize
animated:(BOOL)animated
shouldMeasureAsync:(BOOL)shouldMeasureAsync
measurementCompletion:(nullable void(^)())completion;
measurementCompletion:(nullable void(^)(void))completion;
/**
@@ -897,7 +897,7 @@ extern NSInteger const ASDefaultDrawingPriority;
*/
- (void)transitionLayoutWithAnimation:(BOOL)animated
shouldMeasureAsync:(BOOL)shouldMeasureAsync
measurementCompletion:(nullable void(^)())completion;
measurementCompletion:(nullable void(^)(void))completion;
/**
* @abstract Cancels all performing layout transitions. Can be called on any thread.