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

@ -282,10 +282,10 @@ NSLog (NSString* format, ...)
void
NSLogv (NSString* format, va_list args)
{
NSString *prefix;
NSString *message;
static int pid = 0;
CREATE_AUTORELEASE_POOL(arp);
NSString *prefix;
NSString *message;
static int pid = 0;
NSAutoreleasePool *arp = [NSAutoreleasePool new];
if (_NSLog_printf_handler == NULL)
{
@ -357,6 +357,6 @@ NSLogv (NSString* format, va_list args)
[myLock unlock];
RELEASE(arp);
[arp release];
}