Skip to content
This repository has been archived by the owner on Feb 19, 2020. It is now read-only.

Commit

Permalink
Merge pull request #488 from bitstadium/fix/warnings-when-integrating…
Browse files Browse the repository at this point in the history
…-from-source

Specify block as void
  • Loading branch information
Benjamin Scholtysik (Reimold) authored Dec 12, 2017
2 parents b6c0d55 + 903de60 commit d4de7b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/BITChannel.m
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ - (void)createBackgroundTaskWhileDataIsSending:(UIApplication *)application
backgroundTask = UIBackgroundTaskInvalid;
}];
__block NSUInteger i = 0;
__block __weak void (^weakWaitBlock)();
void (^waitBlock)();
__block __weak void (^weakWaitBlock)(void);
void (^waitBlock)(void);
weakWaitBlock = waitBlock = ^{
if (i < queues.count) {
dispatch_queue_t queue = [queues objectAtIndex:i++];
Expand Down

0 comments on commit d4de7b2

Please sign in to comment.