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; } 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]; 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 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) 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";