Fix warning: variable ‘uidnext’ set but not used [-Wunused-but-set-variable]
Remove uidnext declaration and calls that change its value.pull/201/head
parent
ddade629fd
commit
5b71ed319a
|
@ -2245,18 +2245,13 @@ _compareFetchResultsByMODSEQ (id entry1, id entry2, void *data)
|
||||||
NSDictionary *d;
|
NSDictionary *d;
|
||||||
id fetchResults;
|
id fetchResults;
|
||||||
|
|
||||||
int uidnext, highestmodseq, i;
|
int highestmodseq, i;
|
||||||
|
|
||||||
allTokens = [NSMutableArray array];
|
allTokens = [NSMutableArray array];
|
||||||
|
|
||||||
if ([theSyncToken isEqualToString: @"-1"])
|
if (![theSyncToken isEqualToString: @"-1"])
|
||||||
{
|
|
||||||
uidnext = highestmodseq = 0;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
a = [theSyncToken componentsSeparatedByString: @"-"];
|
a = [theSyncToken componentsSeparatedByString: @"-"];
|
||||||
uidnext = [[a objectAtIndex: 0] intValue];
|
|
||||||
highestmodseq = [[a objectAtIndex: 1] intValue];
|
highestmodseq = [[a objectAtIndex: 1] intValue];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue