From 89f9094ceaa1c0cc481b07364c06dc2f9ce2b240 Mon Sep 17 00:00:00 2001 From: Mattt Thompson Date: Mon, 1 Oct 2012 10:38:46 -0700 Subject: [PATCH] Fixing warnings detected by -Weverything --- Example/AFNetworking Mac Example.xcodeproj/project.pbxproj | 4 +++- Example/AFNetworking iOS Example.xcodeproj/project.pbxproj | 2 ++ Example/Classes/Models/Tweet.h | 6 +++--- Example/Classes/Models/User.h | 4 ++-- Example/Classes/Models/User.m | 6 ++---- 5 files changed, 12 insertions(+), 10 deletions(-) diff --git a/Example/AFNetworking Mac Example.xcodeproj/project.pbxproj b/Example/AFNetworking Mac Example.xcodeproj/project.pbxproj index b1ee68d..b1c8a70 100644 --- a/Example/AFNetworking Mac Example.xcodeproj/project.pbxproj +++ b/Example/AFNetworking Mac Example.xcodeproj/project.pbxproj @@ -198,7 +198,7 @@ F8129BF21591061B009BFE23 /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 0430; + LastUpgradeCheck = 0450; }; buildConfigurationList = F8129BF51591061B009BFE23 /* Build configuration list for PBXProject "AFNetworking Mac Example" */; compatibilityVersion = "Xcode 3.2"; @@ -303,6 +303,7 @@ buildSettings = { CODE_SIGN_ENTITLEMENTS = "AFNetworking Example.entitlements"; CODE_SIGN_IDENTITY = "Mac Developer"; + COMBINE_HIDPI_IMAGES = YES; GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = Prefix.pch; INFOPLIST_FILE = "Mac-Info.plist"; @@ -316,6 +317,7 @@ buildSettings = { CODE_SIGN_ENTITLEMENTS = "AFNetworking Example.entitlements"; CODE_SIGN_IDENTITY = "Mac Developer"; + COMBINE_HIDPI_IMAGES = YES; GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = Prefix.pch; INFOPLIST_FILE = "Mac-Info.plist"; diff --git a/Example/AFNetworking iOS Example.xcodeproj/project.pbxproj b/Example/AFNetworking iOS Example.xcodeproj/project.pbxproj index 911a547..1ff0b59 100644 --- a/Example/AFNetworking iOS Example.xcodeproj/project.pbxproj +++ b/Example/AFNetworking iOS Example.xcodeproj/project.pbxproj @@ -390,6 +390,7 @@ INFOPLIST_FILE = "iOS-Info.plist"; IPHONEOS_DEPLOYMENT_TARGET = 5.0; PRODUCT_NAME = "$(TARGET_NAME)"; + WARNING_CFLAGS = ""; WRAPPER_EXTENSION = app; }; name = Debug; @@ -410,6 +411,7 @@ IPHONEOS_DEPLOYMENT_TARGET = 5.0; PRODUCT_NAME = "$(TARGET_NAME)"; VALIDATE_PRODUCT = YES; + WARNING_CFLAGS = ""; WRAPPER_EXTENSION = app; }; name = Release; diff --git a/Example/Classes/Models/Tweet.h b/Example/Classes/Models/Tweet.h index 2a41c4b..20d9054 100644 --- a/Example/Classes/Models/Tweet.h +++ b/Example/Classes/Models/Tweet.h @@ -26,10 +26,10 @@ @interface Tweet : NSObject -@property (readonly, assign) NSUInteger tweetID; -@property (readonly, strong) NSString *text; +@property (readonly) NSUInteger tweetID; +@property (readonly) NSString *text; -@property (readonly, strong) User *user; +@property (readonly) User *user; - (id)initWithAttributes:(NSDictionary *)attributes; diff --git a/Example/Classes/Models/User.h b/Example/Classes/Models/User.h index 25419ef..06133d3 100644 --- a/Example/Classes/Models/User.h +++ b/Example/Classes/Models/User.h @@ -27,12 +27,12 @@ extern NSString * const kUserProfileImageDidLoadNotification; @interface User : NSObject @property (readonly) NSUInteger userID; -@property (strong, readonly) NSString *username; +@property (readonly) NSString *username; @property (unsafe_unretained, readonly) NSURL *profileImageURL; - (id)initWithAttributes:(NSDictionary *)attributes; -#if __MAC_OS_X_VERSION_MIN_REQUIRED +#ifdef __MAC_OS_X_VERSION_MIN_REQUIRED @property (nonatomic, strong) NSImage *profileImage; #endif diff --git a/Example/Classes/Models/User.m b/Example/Classes/Models/User.m index a32b4bd..6191a2b 100644 --- a/Example/Classes/Models/User.m +++ b/Example/Classes/Models/User.m @@ -25,11 +25,9 @@ NSString * const kUserProfileImageDidLoadNotification = @"com.alamofire.user.profile-image.loaded"; -#if __MAC_OS_X_VERSION_MIN_REQUIRED +#ifdef __MAC_OS_X_VERSION_MIN_REQUIRED @interface User () -#if __MAC_OS_X_VERSION_MIN_REQUIRED + (NSOperationQueue *)sharedProfileImageRequestOperationQueue; -#endif @end #endif @@ -59,7 +57,7 @@ NSString * const kUserProfileImageDidLoadNotification = @"com.alamofire.user.pro return [NSURL URLWithString:_profileImageURLString]; } -#if __MAC_OS_X_VERSION_MIN_REQUIRED +#ifdef __MAC_OS_X_VERSION_MIN_REQUIRED @synthesize profileImage = _profileImage;