From ce38a9c606071afe784dc7c91df12531b0f06245 Mon Sep 17 00:00:00 2001 From: Patrice Levesque Date: Wed, 17 Feb 2016 16:32:08 -0500 Subject: [PATCH] =?UTF-8?q?Fix=20one=20warning:=20expected=20=E2=80=98stru?= =?UTF-8?q?ct=20NSError=20**=E2=80=99=20but=20argument=20is=20of=20type=20?= =?UTF-8?q?=E2=80=98id=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit nil is not recognized by GCC as a (NSError**), but as an (id). NULL works the same but does not spawn warnings. --- SoObjects/Mailer/SOGoDraftObject.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SoObjects/Mailer/SOGoDraftObject.m b/SoObjects/Mailer/SOGoDraftObject.m index 35f414086..96bf80f8e 100644 --- a/SoObjects/Mailer/SOGoDraftObject.m +++ b/SoObjects/Mailer/SOGoDraftObject.m @@ -1116,7 +1116,7 @@ static NSString *userAgent = nil; pmime = [self pathToAttachmentWithName: [NSString stringWithFormat: @".%@.mime", name]]; if (![[mimeType dataUsingEncoding: NSUTF8StringEncoding] writeToFile: pmime atomically: YES]) { - [[NSFileManager defaultManager] removeItemAtPath: p error: nil]; + [[NSFileManager defaultManager] removeItemAtPath: p error: NULL]; return [NSException exceptionWithHTTPStatus: 500 /* Server Error */ reason: @"Could not write attachment to draft!"]; }