Make -base compile almost without warnings again. Fixes:

- Using the correct format specifier
- Remove substringFromRange: (GNUstep extension) from NSString.h and use the non-deprecated version in -base.
- Delete definitions of methods that are the same in both a class and a category on that class (NSArray and NSObject).

Two files still have warnings:

- The GNUTLS stuff is using a load of deprecated APIs.
- xmlparse.m replaces a method using a category.  This method seems to always return nil.  Not sure what it's meant to do, or why it isn't a delegate of some kind.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33756 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
theraven 2011-08-16 16:04:43 +00:00
parent 5d60193f9c
commit 5568644a5e
19 changed files with 51 additions and 114 deletions

View file

@ -1494,7 +1494,7 @@ static NSURLProtocol *placeholder = nil;
}
else
{
NSLog(@"Unexpected event %d occurred on stream %@ not being used by %@",
NSLog(@"Unexpected event %" PRIdPTR " occurred on stream %@ not being used by %@",
event, stream, self);
}
if (event == NSStreamEventErrorOccurred)
@ -1506,7 +1506,7 @@ static NSURLProtocol *placeholder = nil;
}
else
{
NSLog(@"Unexpected event %d ignored on stream %@ of %@",
NSLog(@"Unexpected event %" PRIdPTR " ignored on stream %@ of %@",
event, stream, self);
}
}
@ -1640,7 +1640,7 @@ static NSURLProtocol *placeholder = nil;
}
else
{
NSLog(@"Unexpected event %d occurred on stream %@ not being used by %@",
NSLog(@"Unexpected event %" PRIdPTR " occurred on stream %@ not being used by %@",
event, stream, self);
}
if (event == NSStreamEventErrorOccurred)
@ -1652,7 +1652,7 @@ static NSURLProtocol *placeholder = nil;
}
else
{
NSLog(@"Unexpected event %d ignored on stream %@ of %@",
NSLog(@"Unexpected event %" PRIdPTR " ignored on stream %@ of %@",
event, stream, self);
}
}