Skip to content

Commit

Permalink
enable more warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
steipete committed May 3, 2014
1 parent 0f3788b commit 1c5c261
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions AspectsDemo/AspectsDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,23 @@
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
WARNING_CFLAGS = (
"-Wall",
"-Wextra",
"-Wno-unused-parameter",
"-Wno-sign-compare",
"-Wdocumentation",
"-Wno-static-in-inline",
"-Wno-objc-missing-property-synthesis",
"-Wcast-align",
"-Wmissing-declarations",
"-Wmissing-prototypes",
"-Woverlength-strings",
"-Wshadow",
"-Wundeclared-selector",
"-Wunreachable-code",
"-Wformat=2",
);
};
name = Debug;
};
Expand Down Expand Up @@ -358,6 +375,23 @@
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
WARNING_CFLAGS = (
"-Wall",
"-Wextra",
"-Wno-unused-parameter",
"-Wno-sign-compare",
"-Wdocumentation",
"-Wno-static-in-inline",
"-Wno-objc-missing-property-synthesis",
"-Wcast-align",
"-Wmissing-declarations",
"-Wmissing-prototypes",
"-Woverlength-strings",
"-Wshadow",
"-Wundeclared-selector",
"-Wunreachable-code",
"-Wformat=2",
);
};
name = Release;
};
Expand Down Expand Up @@ -446,6 +480,7 @@
78573F1F19155A2E000D3B00 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
78573F2019155A2E000D3B00 /* Build configuration list for PBXNativeTarget "AspectsDemoTests" */ = {
isa = XCConfigurationList;
Expand All @@ -454,6 +489,7 @@
78573F2219155A2E000D3B00 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
Expand Down
2 changes: 1 addition & 1 deletion NSObject+Aspects.m
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ - (NSArray *)aspects_arguments {

@implementation AspectIdentifier

- (id)initWithSelector:(SEL)selector object:(id)object block:(id)block; {
- (id)initWithSelector:(SEL)selector object:(id)object block:(id)block {
NSCParameterAssert(block);
NSCParameterAssert(selector);
if (self = [super init]) {
Expand Down

0 comments on commit 1c5c261

Please sign in to comment.