Stage1b (v2 branch) of clang compiler warning patches.

This commit is contained in:
Euan Thoms
2015-11-06 01:29:26 +08:00
parent 9d31023724
commit eda84c7b5d
82 changed files with 186 additions and 154 deletions
+3 -3
View File
@@ -1366,15 +1366,15 @@ static NSArray *reminderValues = nil;
if ([account updateFilters])
// If Sieve is not enabled, the SOGoSieveManager will immediatly return a positive answer
// See [SOGoSieveManager updateFiltersForAccount:withUsername:andPassword:]
results = [self responseWithStatus: 200
results = (id <WOActionResults>)[self responseWithStatus: 200
andJSONRepresentation: [NSDictionary dictionaryWithObjectsAndKeys: [NSNumber numberWithBool:hasChanged], @"hasChanged", nil]];
else
results = [self responseWithStatus: 502
results = (id <WOActionResults>)[self responseWithStatus: 502
andJSONRepresentation: [NSDictionary dictionaryWithObjectsAndKeys: @"Connection error", @"textStatus", nil]];
}
else
results = [self responseWithStatus: 503
results = (id <WOActionResults>)[self responseWithStatus: 503
andJSONRepresentation: [NSDictionary dictionaryWithObjectsAndKeys: @"Service temporarily unavailable", @"textStatus", nil]];
}
else