mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +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
5d60193f9c
commit
5568644a5e
19 changed files with 51 additions and 114 deletions
|
@ -3110,7 +3110,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
|
|||
shmid = shmget(IPC_PRIVATE, bufferSize, IPC_CREAT|VM_RDONLY);
|
||||
if (shmid == -1) /* Created memory? */
|
||||
{
|
||||
NSLog(@"[-initWithBytes:length:] shared mem get failed for %u - %@",
|
||||
NSLog(@"[-initWithBytes:length:] shared mem get failed for %" PRIuPTR " - %@",
|
||||
bufferSize, [NSError _last]);
|
||||
DESTROY(self);
|
||||
self = [dataMalloc allocWithZone: NSDefaultMallocZone()];
|
||||
|
@ -3120,7 +3120,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
|
|||
bytes = shmat(shmid, 0, 0);
|
||||
if (bytes == (void*)-1)
|
||||
{
|
||||
NSLog(@"[-initWithBytes:length:] shared mem attach failed for %u - %@",
|
||||
NSLog(@"[-initWithBytes:length:] shared mem attach failed for %" PRIuPTR " - %@",
|
||||
bufferSize, [NSError _last]);
|
||||
bytes = 0;
|
||||
DESTROY(self);
|
||||
|
@ -3300,7 +3300,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
|
|||
if (bytes == 0)
|
||||
{
|
||||
NSLog(@"[NSMutableDataMalloc -initWithCapacity:] out of memory "
|
||||
@"for %u bytes - %@", size, [NSError _last]);
|
||||
@"for %" PRIuPTR " bytes - %@", size, [NSError _last]);
|
||||
DESTROY(self);
|
||||
return nil;
|
||||
}
|
||||
|
@ -3844,7 +3844,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
|
|||
if (shmid == -1) /* Created memory? */
|
||||
{
|
||||
NSLog(@"[NSMutableDataShared -initWithCapacity:] shared memory "
|
||||
@"get failed for %u - %@", bufferSize, [NSError _last]);
|
||||
@"get failed for %" PRIuPTR " - %@", bufferSize, [NSError _last]);
|
||||
DESTROY(self);
|
||||
self = [mutableDataMalloc allocWithZone: NSDefaultMallocZone()];
|
||||
return [self initWithCapacity: bufferSize];
|
||||
|
@ -3854,7 +3854,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
|
|||
if (bytes == (void*)-1)
|
||||
{
|
||||
NSLog(@"[NSMutableDataShared -initWithCapacity:] shared memory "
|
||||
@"attach failed for %u - %@", bufferSize, [NSError _last]);
|
||||
@"attach failed for %" PRIuPTR " - %@", bufferSize, [NSError _last]);
|
||||
bytes = 0;
|
||||
DESTROY(self);
|
||||
self = [mutableDataMalloc allocWithZone: NSDefaultMallocZone()];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue