Skip to content
This repository was archived by the owner on Aug 24, 2019. It is now read-only.

Commit 68ac0ee

Browse files
committed
Fix warnings
1 parent eb51b5d commit 68ac0ee

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

SSPullToRefresh.xcodeproj/project.pbxproj

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
9E5FDF0216B9E4D70028CF6C /* Project object */ = {
133133
isa = PBXProject;
134134
attributes = {
135-
LastUpgradeCheck = 0510;
135+
LastUpgradeCheck = 0630;
136136
TargetAttributes = {
137137
368DECC21B20B12F0098369F = {
138138
CreatedOnToolsVersion = 6.3.2;
@@ -234,6 +234,10 @@
234234
TARGETED_DEVICE_FAMILY = "1,2";
235235
VERSIONING_SYSTEM = "apple-generic";
236236
VERSION_INFO_PREFIX = "";
237+
WARNING_CFLAGS = (
238+
"-Weverything",
239+
"-Wno-missing-variable-declarations",
240+
);
237241
};
238242
name = Debug;
239243
};
@@ -285,13 +289,18 @@
285289
VALIDATE_PRODUCT = YES;
286290
VERSIONING_SYSTEM = "apple-generic";
287291
VERSION_INFO_PREFIX = "";
292+
WARNING_CFLAGS = (
293+
"-Weverything",
294+
"-Wno-missing-variable-declarations",
295+
);
288296
};
289297
name = Release;
290298
};
291299
9E5FDF0616B9E4D70028CF6C /* Debug */ = {
292300
isa = XCBuildConfiguration;
293301
buildSettings = {
294302
IPHONEOS_DEPLOYMENT_TARGET = 5.0;
303+
ONLY_ACTIVE_ARCH = YES;
295304
};
296305
name = Debug;
297306
};

SSPullToRefresh/SSPullToRefreshView.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#import "SSPullToRefreshView.h"
1010
#import "SSPullToRefreshSimpleContentView.h"
11-
#import <QuartzCore/QuartzCore.h>
11+
@import QuartzCore;
1212

1313
@interface SSPullToRefreshView ()
1414
@property (nonatomic, readwrite) SSPullToRefreshViewState state;
@@ -158,7 +158,7 @@ - (void)layoutSubviews {
158158
- (id)initWithScrollView:(UIScrollView *)scrollView delegate:(id<SSPullToRefreshViewDelegate>)delegate {
159159
CGRect frame = CGRectMake(0.0f, 0.0f - scrollView.bounds.size.height, scrollView.bounds.size.width,
160160
scrollView.bounds.size.height);
161-
if ((self = [self initWithFrame:frame])) {
161+
if ((self = [super initWithFrame:frame])) {
162162
for (UIView *view in self.scrollView.subviews) {
163163
if ([view isKindOfClass:[SSPullToRefreshView class]]) {
164164
[[NSException exceptionWithName:@"SSPullToRefreshViewAlreadyAdded" reason:@"There is already a SSPullToRefreshView added to this scroll view. Unexpected things will happen. Don't do this." userInfo:nil] raise];

0 commit comments

Comments
 (0)