]> err.no Git - sope/commitdiff
fixed gcc 4.0 warnings
authorhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Mon, 25 Apr 2005 17:39:42 +0000 (17:39 +0000)
committerhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Mon, 25 Apr 2005 17:39:42 +0000 (17:39 +0000)
git-svn-id: http://svn.opengroupware.org/SOPE/trunk@773 e4a50df8-12e2-0310-a44c-efbce7f8a7e3

sope-gdl1/GDLContentStore/ChangeLog
sope-gdl1/GDLContentStore/GCSFieldInfo.m
sope-gdl1/GDLContentStore/GCSFolderManager.m
sope-gdl1/GDLContentStore/GCSFolderType.m
sope-gdl1/GDLContentStore/Version
sope-gdl1/MySQL/NSCalendarDate+MySQL4Val.m

index 3803df16dd7d0e269a7072af83ae4665ffd1d51c..de89932190a27cd352939a552df7040fbd2eba57 100644 (file)
@@ -1,3 +1,7 @@
+2005-04-25  Helge Hess  <helge.hess@opengroupware.org>
+
+       * fixed gcc 4.0 warnings (v4.5.28)
+
 2005-03-21  Helge Hess  <helge.hess@skyrix.com>
 
        * GNUmakefile: added FHS support (v4.5.27)
index 9f041935eed4a878a8644b041f963a5269bb98e6..8035091eb8afa08c8ab27a1df2df51ede610517b 100644 (file)
 
 - (id)initWithPropertyList:(id)_plist {
   if ((self = [super init])) {
-    self->columnName = [[_plist objectForKey:@"columnName"] copy];
-    self->sqlType    = [[_plist objectForKey:@"sqlType"]    copy];
+    NSDictionary *plist = _plist;
     
-    self->allowsNull   = [[_plist objectForKey:@"allowsNull"]   boolValue];
-    self->isPrimaryKey = [[_plist objectForKey:@"isPrimaryKey"] boolValue];
+    self->columnName = [[plist objectForKey:@"columnName"] copy];
+    self->sqlType    = [[plist objectForKey:@"sqlType"]    copy];
+    
+    self->allowsNull   = [[plist objectForKey:@"allowsNull"]   boolValue];
+    self->isPrimaryKey = [[plist objectForKey:@"isPrimaryKey"] boolValue];
     
     if (![self->columnName isNotNull] || ![self->sqlType isNotNull]) {
       [self release];
index 6c3f7d91e9c3d19417bf64cc48739aa423c4c7b3..29b8bbf8e20dcf20239c909efb165467bbc09373 100644 (file)
@@ -274,7 +274,7 @@ static const char *GCSPathColumnPattern     = "c_path%i";
   sql = [NSMutableString stringWithCapacity:(count * 8)];
   for (i = 0; i < quickPathCount; i++) {
     NSString *pathColumn;
-    unsigned char buf[32];
+    char buf[32];
     
     sprintf(buf, GCSPathColumnPattern, (i + 1));
     pathColumn = [[NSString alloc] initWithCString:buf];
index 9f40742348dab27c526f1d7462d24c3628ab0bfc..e59e389dc967182425475b875893059e3025e358 100644 (file)
 
 - (id)initWithPropertyList:(id)_plist {
   if ((self = [super init])) {
-    self->blobTablePattern  = [[_plist objectForKey:@"blobTablePattern"] copy];
-    self->quickTablePattern = [[_plist objectForKey:@"quickTablePattern"]copy];
+    NSDictionary *plist = _plist;
     
-    self->extractorClassName =
-      [[_plist objectForKey:@"extractorClassName"] copy];
+    self->blobTablePattern  = [[plist objectForKey:@"blobTablePattern"] copy];
+    self->quickTablePattern = [[plist objectForKey:@"quickTablePattern"]copy];
+    
+    self->extractorClassName = 
+      [[plist objectForKey:@"extractorClassName"] copy];
     // TODO: qualifier;
     
     self->fields = [[GCSFieldInfo fieldsForPropertyList:
-                                   [_plist objectForKey:@"fields"]] retain];
+                                   [plist objectForKey:@"fields"]] retain];
   }
   return self;
 }
index 6711565c8f4ac210a634591dfd6dc592d757f5f9..9014956b4543f3219890552955a414336b3f25c1 100644 (file)
@@ -2,7 +2,7 @@
 
 MAJOR_VERSION:=4
 MINOR_VERSION:=5
-SUBMINOR_VERSION:=27
+SUBMINOR_VERSION:=28
 
 # v4.5.26 does not require libNGiCal anymore
 # v0.9.19 requires libNGiCal       v4.5.40
index 674c62f07ce70947230f1131b105093f0081926c..54559bf296d1f237a03d714728872df3c8ebd60f 100644 (file)
@@ -74,7 +74,11 @@ static NSTimeZone *gmt02 = nil;
     break;
   }
 
-  self = [self initWithString:s calendarFormat:calfmt];
+  if ((self = [self initWithString:s calendarFormat:calfmt]) == nil) {
+    NSLog(@"WARNING(%s): got no value for string '%@' format '%@'.",
+         __PRETTY_FUNCTION__, s, calfmt);
+  }
+  
   [s release];
   [self setCalendarFormat:MYSQL4_DATETIME_FORMAT];
   return self;