From f38ca32b5e30fb00098dfdeacb0e26b5f6d6f56d Mon Sep 17 00:00:00 2001 From: helge Date: Wed, 27 Jul 2005 13:57:05 +0000 Subject: [PATCH] fixed some gcc 4.0 warning git-svn-id: http://svn.opengroupware.org/SOPE/trunk@942 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- sope-mime/ChangeLog | 4 ++++ sope-mime/NGImap4/ChangeLog | 4 ++++ sope-mime/NGImap4/NGImap4Connection.m | 10 +++++----- sope-mime/Version | 2 +- 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/sope-mime/ChangeLog b/sope-mime/ChangeLog index 6934267c..5cb7ba38 100644 --- a/sope-mime/ChangeLog +++ b/sope-mime/ChangeLog @@ -1,3 +1,7 @@ +2005-07-27 Helge Hess + + * NGImap4: fixed a gcc 4.0 warning (v4.5.231) + 2005-07-26 Helge Hess * NGImap4: fixed a compatibility issue with Cocoa (v4.5.230) diff --git a/sope-mime/NGImap4/ChangeLog b/sope-mime/NGImap4/ChangeLog index 50d8c482..79279d5a 100644 --- a/sope-mime/NGImap4/ChangeLog +++ b/sope-mime/NGImap4/ChangeLog @@ -1,3 +1,7 @@ +2005-07-27 Helge Hess + + * NGImap4Connection.m: fixed gcc 4.0 warnings + 2005-07-26 Helge Hess * NGImap4Connection.m: fixed a Cocoa compatibility issue with diff --git a/sope-mime/NGImap4/NGImap4Connection.m b/sope-mime/NGImap4/NGImap4Connection.m index f7a96d8a..5fb802e7 100644 --- a/sope-mime/NGImap4/NGImap4Connection.m +++ b/sope-mime/NGImap4/NGImap4Connection.m @@ -540,19 +540,19 @@ NSArray *SOGoMailGetDirectChildren(NSArray *_array, NSString *_fn) { /* process results */ - result = [result objectForKey:@"fetch"]; + result = [(NSDictionary *)result objectForKey:@"fetch"]; if ([result count] == 0) { /* did not find part */ [self errorWithFormat:@"did not find part: %@", _partId]; return nil; } fetch = [result objectAtIndex:0]; - if ((body = [fetch objectForKey:@"body"]) == nil) { + if ((body = [(NSDictionary *)fetch objectForKey:@"body"]) == nil) { [self errorWithFormat:@"did not find body in response: %@", result]; return nil; } - if ((result = [body objectForKey:@"data"]) == nil) { + if ((result = [(NSDictionary *)body objectForKey:@"data"]) == nil) { [self errorWithFormat:@"did not find data in body: %@", fetch]; return nil; } @@ -725,14 +725,14 @@ NSArray *SOGoMailGetDirectChildren(NSArray *_array, NSString *_fn) { if ((result = [self cachedHierarchyResults]) != nil) { NSString *p; - result = [result objectForKey:@"list"]; + result = [(NSDictionary *)result objectForKey:@"list"]; p = [_url path]; #if __APPLE__ /* normalized results already have the / in front on libFoundation?! */ if ([p hasPrefix:@"/"]) p = [p substringFromIndex:1]; #endif - return ([result objectForKey:p] != nil) ? YES : NO; + return ([(NSDictionary *)result objectForKey:p] != nil) ? YES : NO; } /* check using IMAP4 select */ diff --git a/sope-mime/Version b/sope-mime/Version index ff670ea8..0fb50bf3 100644 --- a/sope-mime/Version +++ b/sope-mime/Version @@ -2,7 +2,7 @@ MAJOR_VERSION:=4 MINOR_VERSION:=5 -SUBMINOR_VERSION:=230 +SUBMINOR_VERSION:=231 # v4.5.214 requires libNGExtensions v4.5.146 # v4.2.149 requires libNGStreams v4.2.34 -- 2.39.5