mirror of
https://github.com/gnustep/tools-make.git
synced 2025-06-03 10:41:26 +00:00
avoid some compiler warnings
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@32487 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4428ee9679
commit
0c983b6862
3 changed files with 8 additions and 5 deletions
|
@ -218,7 +218,7 @@ static void test_NSCoding(NSArray *objects)
|
|||
NSArchiver *archiver;
|
||||
id decoded;
|
||||
|
||||
sprintf(buf, "test_NSCoding object %u", i);
|
||||
snprintf(buf, sizeof(buf), "test_NSCoding object %u", i);
|
||||
START_SET(buf)
|
||||
pass([[[obj class] description] length],
|
||||
"I can extract a class name for object");
|
||||
|
@ -252,7 +252,7 @@ static void test_keyed_NSCoding(NSArray *objects)
|
|||
NSData *data;
|
||||
id decoded;
|
||||
|
||||
sprintf(buf, "test_keyed_NSCoding object %u", i);
|
||||
snprintf(buf, sizeof(buf), "test_keyed_NSCoding object %u", i);
|
||||
START_SET(buf)
|
||||
pass([[[obj class] description] length],
|
||||
"I can extract a class name for object");
|
||||
|
@ -294,7 +294,7 @@ static void test_NSCopying(NSString *iClassName,
|
|||
Class theClass = Nil;
|
||||
id theObj = [objects objectAtIndex: i];
|
||||
|
||||
sprintf(buf, "test_NSCopying object %u", i);
|
||||
snprintf(buf, sizeof(buf), "test_NSCopying object %u", i);
|
||||
START_SET(buf)
|
||||
if (iClass != mClass && [theObj isKindOfClass: mClass])
|
||||
{
|
||||
|
@ -389,7 +389,7 @@ static void test_NSMutableCopying(NSString *iClassName,
|
|||
id theCopy = nil;
|
||||
Class theClass = Nil;
|
||||
|
||||
sprintf(buf, "test_NSMutableCopying object %u", i);
|
||||
snprintf(buf, sizeof(buf), "test_NSMutableCopying object %u", i);
|
||||
START_SET(buf);
|
||||
if (iClass == mClass && [theObj isKindOfClass: mClass])
|
||||
immutable = NO;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue