mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
avoid compiler warnings
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32417 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6641e12d91
commit
aa5229a6cb
31 changed files with 201 additions and 163 deletions
|
@ -1559,9 +1559,9 @@ static BOOL isLocked = NO;
|
|||
|
||||
while ([_fileLock tryLock] == NO)
|
||||
{
|
||||
CREATE_AUTORELEASE_POOL(arp);
|
||||
NSDate *when;
|
||||
NSDate *lockDate;
|
||||
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
||||
NSDate *when;
|
||||
NSDate *lockDate;
|
||||
|
||||
lockDate = [_fileLock lockDate];
|
||||
when = [NSDateClass dateWithTimeIntervalSinceNow: 0.1];
|
||||
|
@ -1576,7 +1576,7 @@ static BOOL isLocked = NO;
|
|||
{
|
||||
NSLog(@"Failed to lock user defaults database even after "
|
||||
@"breaking old locks!");
|
||||
RELEASE(arp);
|
||||
[arp release];
|
||||
return NO;
|
||||
}
|
||||
|
||||
|
@ -1593,7 +1593,7 @@ static BOOL isLocked = NO;
|
|||
{
|
||||
[NSThread sleepUntilDate: when];
|
||||
}
|
||||
RELEASE(arp);
|
||||
[arp release];
|
||||
}
|
||||
isLocked = YES;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue