mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-21 06:52:40 +00:00
Merge pull request #108 from ethoms/clang-warnings-stage1
Stage1 of clang compiler warning patches.
This commit is contained in:
commit
cc1555af22
85 files changed
+183
-163
No files matched your search
@@ -50,7 +50,7 @@
|
||||
id dispatcher;
|
||||
Class clazz;
|
||||
|
||||
request = [context request];
|
||||
request = (WORequest *)[context request];
|
||||
response = [self responseWithStatus: 200];
|
||||
|
||||
bundle = [NSBundle bundleForClass: NSClassFromString(@"ActiveSyncProduct")];
|
||||
|
||||
@@ -193,7 +193,7 @@
|
||||
timeZone: [currentStartDate timeZone]];
|
||||
|
||||
// Increment counters for quarters of first hour
|
||||
hourKey = [NSString stringWithFormat: @"%u", [currentDate hourOfDay]];
|
||||
hourKey = [NSString stringWithFormat: @"%u", (unsigned int)[currentDate hourOfDay]];
|
||||
hourData = [dayData objectForKey: hourKey];
|
||||
if (!hourData)
|
||||
{
|
||||
@@ -224,7 +224,7 @@
|
||||
while ([currentDate compare: currentEndDate] == NSOrderedAscending &&
|
||||
[currentEndDate timeIntervalSinceDate: currentDate] >= 3600) // 1 hour
|
||||
{
|
||||
hourKey = [NSString stringWithFormat: @"%u", [currentDate hourOfDay]];
|
||||
hourKey = [NSString stringWithFormat: @"%u", (unsigned int)[currentDate hourOfDay]];
|
||||
hourData = [dayData objectForKey: hourKey];
|
||||
if (!hourData)
|
||||
{
|
||||
@@ -251,7 +251,7 @@
|
||||
// Increment counters for quarters of last hour
|
||||
if ([currentEndDate timeIntervalSinceDate: currentDate] > 0)
|
||||
{
|
||||
hourKey = [NSString stringWithFormat: @"%u", [currentDate hourOfDay]];
|
||||
hourKey = [NSString stringWithFormat: @"%u", (unsigned int)[currentDate hourOfDay]];
|
||||
hourData = [dayData objectForKey: hourKey];
|
||||
if (!hourData)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user