From f1132002b90a59b1ac5d09cfeac17abe01b88c5b Mon Sep 17 00:00:00 2001 From: Kevin Wojniak Date: Mon, 27 Oct 2014 13:51:05 -0700 Subject: [PATCH 1/5] Removed pragma which disabled a warning that is no longer shown in Xcode 6.1 --- Sparkle/SUBinaryDeltaTool.m | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Sparkle/SUBinaryDeltaTool.m b/Sparkle/SUBinaryDeltaTool.m index a09d8c6d..bede8ba7 100644 --- a/Sparkle/SUBinaryDeltaTool.m +++ b/Sparkle/SUBinaryDeltaTool.m @@ -227,11 +227,7 @@ int main(int __unused argc, char __unused *argv[]) NSOperationQueue *deltaQueue = [[NSOperationQueue alloc] init]; NSMutableArray *deltaOperations = [NSMutableArray array]; -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wselector" - // Xcode 5.1.1: compare: is clearly declared, must warn due to a compiler bug? NSArray *keys = [[newTreeState allKeys] sortedArrayUsingSelector:@selector(compare:)]; -#pragma clang diagnostic pop for (NSString* key in keys) { id value = [newTreeState valueForKey:key]; From f7629eb044528d533a9a7ac8a4db7cb1f5a98c92 Mon Sep 17 00:00:00 2001 From: Kevin Wojniak Date: Mon, 27 Oct 2014 13:52:03 -0700 Subject: [PATCH 2/5] Changed NSSortDescriptor key input to allow for removal of pragma --- Sparkle/SUAppcast.m | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Sparkle/SUAppcast.m b/Sparkle/SUAppcast.m index 196267fb..2bfaedcc 100644 --- a/Sparkle/SUAppcast.m +++ b/Sparkle/SUAppcast.m @@ -204,11 +204,7 @@ if ([appcastItems count]) { -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wselector" - // @selector(date) is from SUAppcastItem - NSSortDescriptor *sort = [[NSSortDescriptor alloc] initWithKey:NSStringFromSelector(@selector(date)) ascending:NO]; -#pragma clang diagnostic pop + NSSortDescriptor *sort = [[NSSortDescriptor alloc] initWithKey:@"date" ascending:NO]; [appcastItems sortUsingDescriptors:@[sort]]; self.items = appcastItems; } From a90b075eec27fa4ca65795ae8a785c7d98fd565a Mon Sep 17 00:00:00 2001 From: Kevin Wojniak Date: Mon, 27 Oct 2014 13:54:14 -0700 Subject: [PATCH 3/5] Removed use of pragma once in SULog to be consistent with the other headers --- Sparkle/SULog.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Sparkle/SULog.h b/Sparkle/SULog.h index e3559b5e..1693f535 100644 --- a/Sparkle/SULog.h +++ b/Sparkle/SULog.h @@ -12,7 +12,8 @@ Your tech support will hug you if you tell them about this. */ -#pragma once +#ifndef SULOG_H +#define SULOG_H // ----------------------------------------------------------------------------- // Headers: @@ -28,4 +29,4 @@ void SUClearLog(void); void SULog(NSString *format, ...) NS_FORMAT_FUNCTION(1, 2); - +#endif From ebcbb71e8c46f209651b75b8caad6df9fbc72558 Mon Sep 17 00:00:00 2001 From: Kevin Wojniak Date: Mon, 27 Oct 2014 13:54:59 -0700 Subject: [PATCH 4/5] Removed outdated SUClearLog comment --- Sparkle/SULog.m | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Sparkle/SULog.m b/Sparkle/SULog.m index 02c3be10..3def222c 100644 --- a/Sparkle/SULog.m +++ b/Sparkle/SULog.m @@ -30,10 +30,6 @@ static NSString *const SULogFilePath = @"~/Library/Logs/SparkleUpdateLog.log"; // // TAKES: // sender - Object that sent this message, typically of type X. -// -// GIVES: -// param - who owns the returned value? -// result - same here. // ----------------------------------------------------------------------------- void SUClearLog(void) From c5868c6eeab40dea37fd39591bd485a73161d42a Mon Sep 17 00:00:00 2001 From: Kevin Wojniak Date: Mon, 27 Oct 2014 13:55:41 -0700 Subject: [PATCH 5/5] Removed useless sole pragma mark --- Sparkle/SUUpdater.m | 2 -- 1 file changed, 2 deletions(-) diff --git a/Sparkle/SUUpdater.m b/Sparkle/SUUpdater.m index 7d0e25d5..612ee52b 100644 --- a/Sparkle/SUUpdater.m +++ b/Sparkle/SUUpdater.m @@ -55,8 +55,6 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification @synthesize driver; @synthesize host; -#pragma mark Initialization - static NSMutableDictionary *sharedUpdaters = nil; static NSString *const SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaultsObservationContext";