avoid compiler warnings

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39736 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2016-05-10 09:56:41 +00:00
parent 9d24ea1fea
commit 6988879b0a
3 changed files with 3 additions and 3 deletions

View file

@ -4,7 +4,6 @@
int main()
{
NSAutoreleasePool *pool = [NSAutoreleasePool new];
id o;
float flt=M_PI;
double dbl=M_PI;

View file

@ -7,7 +7,7 @@ int main()
{
NSAutoreleasePool *arp = [NSAutoreleasePool new];
GSXMLDocument *doc;
volatile GSXMLNamespace *namespace;
GSXMLNamespace *namespace;
NSMutableArray *iparams;
NSMutableArray *oparams;
GSXMLNode *node;

View file

@ -32,7 +32,8 @@ int main()
[archiver setOutputFormat: NSPropertyListXMLFormat_v1_0];
[archiver encodeObject: ms forKey: @"root"];
[archiver finishEncoding];
NSLog(@"%*.*s", [data2 length], [data2 length], [data2 bytes]);
NSLog(@"%*.*s",
(unsigned)[data2 length], (unsigned)[data2 length], [data2 bytes]);
ms = [NSKeyedUnarchiver unarchiveObjectWithData: data2];
PASS([[[ms anyObject] absoluteString] isEqual: @"http://www.w3.org/"],
"Can archive and restore a URL");