]> err.no Git - sope/commitdiff
fixed gcc 4.0 warnings
authorhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Mon, 2 May 2005 22:21:40 +0000 (22:21 +0000)
committerhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Mon, 2 May 2005 22:21:40 +0000 (22:21 +0000)
git-svn-id: http://svn.opengroupware.org/SOPE/trunk@780 e4a50df8-12e2-0310-a44c-efbce7f8a7e3

sope-xml/XmlRpc/ChangeLog
sope-xml/XmlRpc/NSObject+XmlRpc.m
sope-xml/XmlRpc/Version
sope-xml/XmlRpc/XmlRpcSaxHandler.m

index 58207c2a5113b0dee4269310558fc229b65130f8..c6628b91d1333b3f05e8b50997d4596fd373c59c 100644 (file)
@@ -1,3 +1,8 @@
+2005-05-03  Helge Hess  <helge.hess@opengroupware.org>
+
+       * NSObject+XmlRpc.m, XmlRpcSaxHandler.m: fixed gcc 4.0 warnings
+         (v4.5.25)
+
 2005-04-26  Helge Hess  <helge.hess@skyrix.com>
 
        * XmlRpcDecoder.m: fixed duplicate decoding of base64 values in XML-RPC
index f2157e2412c74711631f11ea3cfd609f27d43700..f5cc35fc6795352be4fd894da59816da924d6b7a 100644 (file)
     buf[0] = _chars[0]; buf[1] = _chars[1];
     buf[2] = _chars[2]; buf[3] = _chars[3];
     buf[4] = '\0';
-    year = atoi(buf);
+    year = atoi((char *)buf);
     buf[0] = _chars[4]; buf[1] = _chars[5]; buf[2] = '\0';
-    month = atoi(buf);
+    month = atoi((char *)buf);
     buf[0] = _chars[6]; buf[1] = _chars[7]; buf[2] = '\0';
-    day = atoi(buf);
+    day = atoi((char *)buf);
 
     buf[0] = _chars[9]; buf[1] = _chars[10]; buf[2] = '\0';
-    hour = atoi(buf);
+    hour = atoi((char *)buf);
     buf[0] = _chars[12]; buf[1] = _chars[13]; buf[2] = '\0';
-    min = atoi(buf);
+    min = atoi((char *)buf);
     buf[0] = _chars[15]; buf[1] = _chars[16]; buf[2] = '\0';
-    sec = atoi(buf);
+    sec = atoi((char *)buf);
     
     if (year > 2033) {
       NSString *s;
index 483f71f67dbf9327a7760e49f233f1a1624e18ca..67ebc1c57170cfa5b5b81269387857b9e7043a87 100644 (file)
@@ -1,3 +1,3 @@
 # version file
 
-SUBMINOR_VERSION:=24
+SUBMINOR_VERSION:=25
index ea05fe074e951e6a24024ce0b181c72124c3cc02..9bb863fd1f6cba92d01f2242929333fd0924de51 100644 (file)
@@ -343,7 +343,9 @@ static BOOL  doDebug         = NO;
 }
 
 - (void)end_member {
-  id tmp = [[self->valueStack lastObject] value];
+  id tmp; // TODO: can't we type the var?
+
+  tmp = [[self->valueStack lastObject] value];
 
   if ([self->memberNameStack count] != [self->memberValueStack count]) {
     NSLog(@"Warning(%s): memberNameStack.count != memberValueStack.count"
@@ -367,8 +369,9 @@ static BOOL  doDebug         = NO;
   else if (![tmp isKindOfClass:DictionaryClass])
     self->invalidCall = YES;
   else {
-    [tmp setObject:[self->memberValueStack lastObject]
-            forKey:[self->memberNameStack lastObject]];
+    [(NSMutableDictionary *)tmp
+                           setObject:[self->memberValueStack lastObject]
+                           forKey:[self->memberNameStack lastObject]];
     
     [self->memberNameStack  removeLastObject];
     [self->memberValueStack removeLastObject];