Fixing warnings detected by -Weverything
This commit is contained in:
parent
3ca7762bd2
commit
89f9094cea
5 changed files with 12 additions and 10 deletions
|
|
@ -198,7 +198,7 @@
|
||||||
F8129BF21591061B009BFE23 /* Project object */ = {
|
F8129BF21591061B009BFE23 /* Project object */ = {
|
||||||
isa = PBXProject;
|
isa = PBXProject;
|
||||||
attributes = {
|
attributes = {
|
||||||
LastUpgradeCheck = 0430;
|
LastUpgradeCheck = 0450;
|
||||||
};
|
};
|
||||||
buildConfigurationList = F8129BF51591061B009BFE23 /* Build configuration list for PBXProject "AFNetworking Mac Example" */;
|
buildConfigurationList = F8129BF51591061B009BFE23 /* Build configuration list for PBXProject "AFNetworking Mac Example" */;
|
||||||
compatibilityVersion = "Xcode 3.2";
|
compatibilityVersion = "Xcode 3.2";
|
||||||
|
|
@ -303,6 +303,7 @@
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
CODE_SIGN_ENTITLEMENTS = "AFNetworking Example.entitlements";
|
CODE_SIGN_ENTITLEMENTS = "AFNetworking Example.entitlements";
|
||||||
CODE_SIGN_IDENTITY = "Mac Developer";
|
CODE_SIGN_IDENTITY = "Mac Developer";
|
||||||
|
COMBINE_HIDPI_IMAGES = YES;
|
||||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||||
GCC_PREFIX_HEADER = Prefix.pch;
|
GCC_PREFIX_HEADER = Prefix.pch;
|
||||||
INFOPLIST_FILE = "Mac-Info.plist";
|
INFOPLIST_FILE = "Mac-Info.plist";
|
||||||
|
|
@ -316,6 +317,7 @@
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
CODE_SIGN_ENTITLEMENTS = "AFNetworking Example.entitlements";
|
CODE_SIGN_ENTITLEMENTS = "AFNetworking Example.entitlements";
|
||||||
CODE_SIGN_IDENTITY = "Mac Developer";
|
CODE_SIGN_IDENTITY = "Mac Developer";
|
||||||
|
COMBINE_HIDPI_IMAGES = YES;
|
||||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||||
GCC_PREFIX_HEADER = Prefix.pch;
|
GCC_PREFIX_HEADER = Prefix.pch;
|
||||||
INFOPLIST_FILE = "Mac-Info.plist";
|
INFOPLIST_FILE = "Mac-Info.plist";
|
||||||
|
|
|
||||||
|
|
@ -390,6 +390,7 @@
|
||||||
INFOPLIST_FILE = "iOS-Info.plist";
|
INFOPLIST_FILE = "iOS-Info.plist";
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 5.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 5.0;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
|
WARNING_CFLAGS = "";
|
||||||
WRAPPER_EXTENSION = app;
|
WRAPPER_EXTENSION = app;
|
||||||
};
|
};
|
||||||
name = Debug;
|
name = Debug;
|
||||||
|
|
@ -410,6 +411,7 @@
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 5.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 5.0;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
VALIDATE_PRODUCT = YES;
|
VALIDATE_PRODUCT = YES;
|
||||||
|
WARNING_CFLAGS = "";
|
||||||
WRAPPER_EXTENSION = app;
|
WRAPPER_EXTENSION = app;
|
||||||
};
|
};
|
||||||
name = Release;
|
name = Release;
|
||||||
|
|
|
||||||
|
|
@ -26,10 +26,10 @@
|
||||||
|
|
||||||
@interface Tweet : NSObject
|
@interface Tweet : NSObject
|
||||||
|
|
||||||
@property (readonly, assign) NSUInteger tweetID;
|
@property (readonly) NSUInteger tweetID;
|
||||||
@property (readonly, strong) NSString *text;
|
@property (readonly) NSString *text;
|
||||||
|
|
||||||
@property (readonly, strong) User *user;
|
@property (readonly) User *user;
|
||||||
|
|
||||||
- (id)initWithAttributes:(NSDictionary *)attributes;
|
- (id)initWithAttributes:(NSDictionary *)attributes;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,12 +27,12 @@ extern NSString * const kUserProfileImageDidLoadNotification;
|
||||||
@interface User : NSObject
|
@interface User : NSObject
|
||||||
|
|
||||||
@property (readonly) NSUInteger userID;
|
@property (readonly) NSUInteger userID;
|
||||||
@property (strong, readonly) NSString *username;
|
@property (readonly) NSString *username;
|
||||||
@property (unsafe_unretained, readonly) NSURL *profileImageURL;
|
@property (unsafe_unretained, readonly) NSURL *profileImageURL;
|
||||||
|
|
||||||
- (id)initWithAttributes:(NSDictionary *)attributes;
|
- (id)initWithAttributes:(NSDictionary *)attributes;
|
||||||
|
|
||||||
#if __MAC_OS_X_VERSION_MIN_REQUIRED
|
#ifdef __MAC_OS_X_VERSION_MIN_REQUIRED
|
||||||
@property (nonatomic, strong) NSImage *profileImage;
|
@property (nonatomic, strong) NSImage *profileImage;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,11 +25,9 @@
|
||||||
|
|
||||||
NSString * const kUserProfileImageDidLoadNotification = @"com.alamofire.user.profile-image.loaded";
|
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 ()
|
@interface User ()
|
||||||
#if __MAC_OS_X_VERSION_MIN_REQUIRED
|
|
||||||
+ (NSOperationQueue *)sharedProfileImageRequestOperationQueue;
|
+ (NSOperationQueue *)sharedProfileImageRequestOperationQueue;
|
||||||
#endif
|
|
||||||
@end
|
@end
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
@ -59,7 +57,7 @@ NSString * const kUserProfileImageDidLoadNotification = @"com.alamofire.user.pro
|
||||||
return [NSURL URLWithString:_profileImageURLString];
|
return [NSURL URLWithString:_profileImageURLString];
|
||||||
}
|
}
|
||||||
|
|
||||||
#if __MAC_OS_X_VERSION_MIN_REQUIRED
|
#ifdef __MAC_OS_X_VERSION_MIN_REQUIRED
|
||||||
|
|
||||||
@synthesize profileImage = _profileImage;
|
@synthesize profileImage = _profileImage;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue