mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
change to avoid compiler warning
This commit is contained in:
parent
cc38a942f2
commit
bed2935a7e
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2022-01-04 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSOperation.m:
|
||||
Declare private method to avoid compiler warnings.
|
||||
|
||||
2022-01-04 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Headers/Foundation/NSString.h:
|
||||
|
|
|
@ -83,6 +83,7 @@ static NSArray *empty = nil;
|
|||
|
||||
@interface NSOperation (Private)
|
||||
- (void) _finish;
|
||||
- (void) _updateReadyState;
|
||||
@end
|
||||
|
||||
@implementation NSOperation
|
||||
|
@ -518,12 +519,13 @@ static NSArray *empty = nil;
|
|||
internal->finished = YES;
|
||||
[self didChangeValueForKey: @"isFinished"];
|
||||
}
|
||||
CALL_BLOCK_NO_ARGS(((GSOperationCompletionBlock)internal->completionBlock));
|
||||
CALL_BLOCK_NO_ARGS(
|
||||
((GSOperationCompletionBlock)internal->completionBlock));
|
||||
}
|
||||
[internal->lock unlock];
|
||||
}
|
||||
|
||||
- (void)_updateReadyState
|
||||
- (void) _updateReadyState
|
||||
{
|
||||
[internal->lock lock];
|
||||
if (NO == internal->ready)
|
||||
|
|
Loading…
Reference in a new issue