Fix ASDISPLAYNODE_ASSERTIONS_ENABLED and ASDefaultPlaybackButton warnings #trivial (#880)

* Define ASDISPLAYNODE_ASSERTIONS_ENABLED explicitly

* Add parameter type for drawRect: in ASDefaultPlaybackButton
This commit is contained in:
Michael Schneider
2018-04-12 10:07:37 -07:00
committed by GitHub
parent 9d5857664f
commit 0aefbb65ba
2 changed files with 8 additions and 4 deletions

View File

@@ -21,7 +21,11 @@
#import <pthread.h>
#import <AsyncDisplayKit/ASBaseDefines.h>
#define ASDISPLAYNODE_ASSERTIONS_ENABLED (!defined(NS_BLOCK_ASSERTIONS))
#if !defined(NS_BLOCK_ASSERTIONS)
#define ASDISPLAYNODE_ASSERTIONS_ENABLED 1
#else
#define ASDISPLAYNODE_ASSERTIONS_ENABLED 0
#endif
/**
* Note: In some cases it would be sufficient to do e.g.: