mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Tweaks to avoid compiler warnings with gcc-4
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21390 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a7f1ff64f9
commit
71e5005964
53 changed files with 502 additions and 322 deletions
|
@ -49,10 +49,12 @@
|
|||
|
||||
extern BOOL GSScanDouble(unichar*, unsigned, double*);
|
||||
|
||||
@class GSString;
|
||||
@class GSMutableString;
|
||||
@class GSMutableArray;
|
||||
@interface GSMutableArray : NSObject // Help the compiler
|
||||
@end
|
||||
@class GSMutableDictionary;
|
||||
@interface GSMutableDictionary : NSObject // Help the compiler
|
||||
@end
|
||||
|
||||
@interface GSBinaryPLParser : NSObject
|
||||
{
|
||||
|
@ -2750,8 +2752,8 @@ GSPropertyListMake(id obj, NSDictionary *loc, BOOL xml,
|
|||
else if ((next >= 0x50) && (next < 0x5F))
|
||||
{
|
||||
// Short string
|
||||
unsigned len = next - 0x50;
|
||||
unsigned char buffer[len+1];
|
||||
unsigned len = next - 0x50;
|
||||
char buffer[len+1];
|
||||
|
||||
[data getBytes: buffer range: NSMakeRange(counter, len)];
|
||||
buffer[len] = '\0';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue