From 5b71ed319ac9ca35167dc33b7ca08d462ddd51e1 Mon Sep 17 00:00:00 2001 From: Patrice Levesque Date: Wed, 17 Feb 2016 11:01:15 -0500 Subject: [PATCH] =?UTF-8?q?Fix=20warning:=20variable=20=E2=80=98uidnext?= =?UTF-8?q?=E2=80=99=20set=20but=20not=20used=20[-Wunused-but-set-variable?= =?UTF-8?q?]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove uidnext declaration and calls that change its value. --- SoObjects/Mailer/SOGoMailFolder.m | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/SoObjects/Mailer/SOGoMailFolder.m b/SoObjects/Mailer/SOGoMailFolder.m index d495febbe..df706e542 100644 --- a/SoObjects/Mailer/SOGoMailFolder.m +++ b/SoObjects/Mailer/SOGoMailFolder.m @@ -2245,18 +2245,13 @@ _compareFetchResultsByMODSEQ (id entry1, id entry2, void *data) NSDictionary *d; id fetchResults; - int uidnext, highestmodseq, i; + int highestmodseq, i; allTokens = [NSMutableArray array]; - if ([theSyncToken isEqualToString: @"-1"]) - { - uidnext = highestmodseq = 0; - } - else + if (![theSyncToken isEqualToString: @"-1"]) { a = [theSyncToken componentsSeparatedByString: @"-"]; - uidnext = [[a objectAtIndex: 0] intValue]; highestmodseq = [[a objectAtIndex: 1] intValue]; }