From 69c9c70d21c91fe4b886b6cfcc870afd2dae6e9c Mon Sep 17 00:00:00 2001 From: Jonathan Mitchell Date: Tue, 27 Nov 2012 10:20:02 +0000 Subject: [PATCH] Add explicit method return types in header to supress warnings when including framework in projects with more exacting warnings such as -Wextra. --- SUUpdater.h | 4 ++-- SUUpdater.m | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SUUpdater.h b/SUUpdater.h index ff04620c..cd795667 100644 --- a/SUUpdater.h +++ b/SUUpdater.h @@ -27,12 +27,12 @@ + (SUUpdater *)sharedUpdater; + (SUUpdater *)updaterForBundle:(NSBundle *)bundle; -- initForBundle:(NSBundle *)bundle; +- (id)initForBundle:(NSBundle *)bundle; - (NSBundle *)hostBundle; - (void)setDelegate:(id)delegate; -- delegate; +- (id)delegate; - (void)setAutomaticallyChecksForUpdates:(BOOL)automaticallyChecks; - (BOOL)automaticallyChecksForUpdates; diff --git a/SUUpdater.m b/SUUpdater.m index 87a66833..7b8c81b6 100644 --- a/SUUpdater.m +++ b/SUUpdater.m @@ -551,7 +551,7 @@ static NSString * const SUUpdaterDefaultsObservationContext = @"SUUpdaterDefault return driver && ([driver finished] == NO); } -- delegate { return delegate; } +- (id)delegate { return delegate; } - (NSBundle *)hostBundle { return [host bundle]; } @end