Skip to content

Commit

Permalink
Fixed semantic warnings in Xcode 4.
Browse files Browse the repository at this point in the history
  • Loading branch information
mwaterfall committed Apr 28, 2011
1 parent ea43013 commit e36ac0c
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 11 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ profile
*.xcworkspace
!default.xcworkspace
xcuserdata
*.xcodeproj/project.xcworkspace/
*.xcodeproj/xcuserdata/

#
# OS X noise
Expand All @@ -40,7 +42,7 @@ Icon
*.pyo

#
# Misc
# GitTower
#

/Icon.png
2 changes: 1 addition & 1 deletion Classes/MWFeedInfo.m
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ - (void)dealloc {
#pragma mark NSCoding

- (id)initWithCoder:(NSCoder *)decoder {
if (self = [super init]) {
if ((self = [super init])) {
title = [[decoder decodeObjectForKey:@"title"] retain];
link = [[decoder decodeObjectForKey:@"link"] retain];
summary = [[decoder decodeObjectForKey:@"summary"] retain];
Expand Down
2 changes: 1 addition & 1 deletion Classes/MWFeedItem.m
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ - (void)dealloc {
#pragma mark NSCoding

- (id)initWithCoder:(NSCoder *)decoder {
if (self = [super init]) {
if ((self = [super init])) {
identifier = [[decoder decodeObjectForKey:@"identifier"] retain];
title = [[decoder decodeObjectForKey:@"title"] retain];
link = [[decoder decodeObjectForKey:@"link"] retain];
Expand Down
4 changes: 2 additions & 2 deletions Classes/MWFeedParser.m
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ @implementation MWFeedParser
#pragma mark NSObject

- (id)init {
if (self = [super init]) {
if ((self = [super init])) {

// Defaults
feedParseType = ParseTypeFull;
Expand All @@ -83,7 +83,7 @@ - (id)init {
// Initialise with a URL
// Mainly for historic reasons before -parseURL:
- (id)initWithFeedURL:(NSURL *)feedURL {
if (self = [self init]) {
if ((self = [self init])) {

// Check if an string was passed as old init asked for NSString not NSURL
if ([feedURL isKindOfClass:[NSString class]]) {
Expand Down
4 changes: 4 additions & 0 deletions MWFeedParser-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,9 @@
<string>MainWindow</string>
<key>UIApplicationExitsOnSuspend</key>
<false/>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
</dict>
</plist>
12 changes: 6 additions & 6 deletions MWFeedParser.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = MWFeedParser_Prefix.pch;
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
GCC_VERSION = com.apple.compilers.llvmgcc42;
INFOPLIST_FILE = "MWFeedParser-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 3.0;
PRODUCT_NAME = MWFeedParser;
Expand All @@ -302,7 +302,7 @@
COPY_PHASE_STRIP = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = MWFeedParser_Prefix.pch;
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
GCC_VERSION = com.apple.compilers.llvmgcc42;
INFOPLIST_FILE = "MWFeedParser-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 3.0;
PRODUCT_NAME = MWFeedParser;
Expand All @@ -315,26 +315,26 @@
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
GCC_C_LANGUAGE_STANDARD = c99;
GCC_VERSION = com.apple.compilers.llvmgcc42;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
PREBINDING = NO;
SDKROOT = iphoneos3.1.3;
SDKROOT = iphoneos;
};
name = Debug;
};
C01FCF5008A954540054247B /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
GCC_C_LANGUAGE_STANDARD = c99;
GCC_VERSION = com.apple.compilers.llvmgcc42;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
PREBINDING = NO;
SDKROOT = iphoneos3.1.3;
SDKROOT = iphoneos;
};
name = Release;
};
Expand Down

0 comments on commit e36ac0c

Please sign in to comment.