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:
rfm 2011-02-28 19:49:57 +00:00
parent 6641e12d91
commit aa5229a6cb
31 changed files with 201 additions and 163 deletions

View file

@ -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;