Skip to content

Commit

Permalink
Work around spurious warnings of -initWithBlock: availability
Browse files Browse the repository at this point in the history
  • Loading branch information
sharplet committed Jan 7, 2019
1 parent 33a2bfe commit 9a6dc6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ReactiveObjC/RACBlockTrampoline.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ - (instancetype)initWithBlock:(id)block {
+ (id)invokeBlock:(id)block withArguments:(RACTuple *)arguments {
NSCParameterAssert(block != NULL);

RACBlockTrampoline *trampoline = [[self alloc] initWithBlock:block];
RACBlockTrampoline *trampoline = [(RACBlockTrampoline *)[self alloc] initWithBlock:block];
return [trampoline invokeWithArguments:arguments];
}

Expand Down
2 changes: 1 addition & 1 deletion ReactiveObjC/RACDisposable.m
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ - (instancetype)initWithBlock:(void (^)(void))block {
}

+ (instancetype)disposableWithBlock:(void (^)(void))block {
return [[self alloc] initWithBlock:block];
return [(RACDisposable *)[self alloc] initWithBlock:block];
}

- (void)dealloc {
Expand Down

0 comments on commit 9a6dc6e

Please sign in to comment.