Skip to content

Commit

Permalink
Address "This block declaration is not a prototype" warning (FLEXTool…
Browse files Browse the repository at this point in the history
  • Loading branch information
jnavarrom authored and NSExceptional committed Nov 8, 2019
1 parent 226e0cd commit b7cac1f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Classes/Core/FLEXScopeCarousel.m
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ - (id)initWithFrame:(CGRect)frame {

// Notify observers
__typeof(self) self = weakSelf;
for (void (^block)() in self.dynamicTypeHandlers) {
for (void (^block)(FLEXScopeCarousel *) in self.dynamicTypeHandlers) {
block(self);
}
}
Expand Down
2 changes: 1 addition & 1 deletion Classes/Core/FLEXTableViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,6 @@ extern CGFloat const kFLEXDebounceForExpensiveIO;

/// Convenient for doing some async processor-intensive searching
/// in the background before updating the UI back on the main queue.
- (void)onBackgroundQueue:(NSArray *(^)())backgroundBlock thenOnMainQueue:(void(^)(NSArray *))mainBlock;
- (void)onBackgroundQueue:(NSArray *(^)(void))backgroundBlock thenOnMainQueue:(void(^)(NSArray *))mainBlock;

@end
4 changes: 2 additions & 2 deletions Classes/Core/FLEXTableViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ - (void)setAutomaticallyShowsSearchBarCancelButton:(BOOL)autoShowCancel {

- (void)updateSearchResults:(NSString *)newText { }

- (void)onBackgroundQueue:(NSArray *(^)())backgroundBlock thenOnMainQueue:(void(^)(NSArray *))mainBlock {
- (void)onBackgroundQueue:(NSArray *(^)(void))backgroundBlock thenOnMainQueue:(void(^)(NSArray *))mainBlock {
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
NSArray *items = backgroundBlock();
dispatch_async(dispatch_get_main_queue(), ^{
Expand Down Expand Up @@ -173,7 +173,7 @@ - (void)viewDidDisappear:(BOOL)animated {

#pragma mark - Private

- (void)debounce:(void(^)())block {
- (void)debounce:(void(^)(void))block {
[self.debounceTimer invalidate];

self.debounceTimer = [NSTimer
Expand Down
2 changes: 1 addition & 1 deletion Classes/GlobalStateExplorers/Keychain/FLEXKeychainQuery.m
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ - (NSString *)password {
#ifdef FLEXKEYCHAIN_SYNCHRONIZATION_AVAILABLE
+ (BOOL)isSynchronizationAvailable {
#if TARGET_OS_IPHONE
return @available(iOS 7.0, *);
return YES;
#else
return floor(NSFoundationVersionNumber) > NSFoundationVersionNumber10_8_4;
#endif
Expand Down
4 changes: 2 additions & 2 deletions Classes/Utility/FLEXAlert.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@

@class FLEXAlert, FLEXAlertAction;

typedef void (^FLEXAlertReveal)();
typedef void (^FLEXAlertReveal)(void);
typedef void (^FLEXAlertBuilder)(FLEXAlert *make);
typedef FLEXAlert *(^FLEXAlertStringProperty)(NSString *);
typedef FLEXAlert *(^FLEXAlertStringArg)(NSString *);
typedef FLEXAlert *(^FLEXAlertTextField)(void(^configurationHandler)(UITextField *textField));
typedef FLEXAlertAction *(^FLEXAlertAddAction)(NSString *title);
typedef FLEXAlertAction *(^FLEXAlertActionStringProperty)(NSString *);
typedef FLEXAlertAction *(^FLEXAlertActionProperty)();
typedef FLEXAlertAction *(^FLEXAlertActionProperty)(void);
typedef FLEXAlertAction *(^FLEXAlertActionBOOLProperty)(BOOL);
typedef FLEXAlertAction *(^FLEXAlertActionHandler)(void(^handler)(NSArray<NSString *> *strings));

Expand Down

0 comments on commit b7cac1f

Please sign in to comment.