mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
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:
parent
223721d583
commit
9efb9a32e3
3 changed files with 3 additions and 3 deletions
|
@ -4,7 +4,6 @@
|
|||
int main()
|
||||
{
|
||||
NSAutoreleasePool *pool = [NSAutoreleasePool new];
|
||||
id o;
|
||||
float flt=M_PI;
|
||||
double dbl=M_PI;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ int main()
|
|||
{
|
||||
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
||||
GSXMLDocument *doc;
|
||||
volatile GSXMLNamespace *namespace;
|
||||
GSXMLNamespace *namespace;
|
||||
NSMutableArray *iparams;
|
||||
NSMutableArray *oparams;
|
||||
GSXMLNode *node;
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue