mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
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:
parent
ca12a84e3f
commit
4cdea64975
19 changed files with 51 additions and 114 deletions
|
@ -2221,7 +2221,7 @@ main(int argc, char **argv, char **env)
|
|||
options: NSLiteralSearch];
|
||||
if (r.length == 0)
|
||||
{
|
||||
NSLog(@"Missing '#' in href at %u", replace.location);
|
||||
NSLog(@"Missing '#' in href at %" PRIuPTR, replace.location);
|
||||
break;
|
||||
}
|
||||
href = [href substringFromIndex: NSMaxRange(r)];
|
||||
|
@ -2233,7 +2233,7 @@ main(int argc, char **argv, char **env)
|
|||
options: NSLiteralSearch];
|
||||
if (r.length == 0)
|
||||
{
|
||||
NSLog(@"Missing '$' in href at %u", replace.location);
|
||||
NSLog(@"Missing '$' in href at %" PRIuPTR, replace.location);
|
||||
break;
|
||||
}
|
||||
type = [href substringToIndex: r.location];
|
||||
|
@ -2272,7 +2272,7 @@ main(int argc, char **argv, char **env)
|
|||
}
|
||||
if (unit == nil)
|
||||
{
|
||||
NSLog(@"Missing unit name terminator at %u",
|
||||
NSLog(@"Missing unit name terminator at %" PRIuPTR,
|
||||
replace.location);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue