Skip to content

Commit 3db2241

Browse files
committed
Fix prototypes warnings
1 parent d6369a8 commit 3db2241

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

KeenClient.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -907,6 +907,7 @@
907907
isa = XCBuildConfiguration;
908908
buildSettings = {
909909
ALWAYS_SEARCH_USER_PATHS = NO;
910+
CLANG_WARN_STRICT_PROTOTYPES = YES;
910911
COPY_PHASE_STRIP = NO;
911912
ENABLE_TESTABILITY = YES;
912913
GCC_C_LANGUAGE_STANDARD = gnu99;
@@ -931,6 +932,7 @@
931932
isa = XCBuildConfiguration;
932933
buildSettings = {
933934
ALWAYS_SEARCH_USER_PATHS = NO;
935+
CLANG_WARN_STRICT_PROTOTYPES = YES;
934936
COPY_PHASE_STRIP = YES;
935937
GCC_C_LANGUAGE_STANDARD = gnu99;
936938
GCC_VERSION = "";

KeenClient/KIOUploader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
- (instancetype)initWithNetwork:(KIONetwork *)network andStore:(KIODBStore *)store;
2424

2525
// Upload events in the store for a given project
26-
- (void)uploadEventsForConfig:(KeenClientConfig *)config completionHandler:(void (^)())completionHandler;
26+
- (void)uploadEventsForConfig:(KeenClientConfig *)config completionHandler:(void (^)(void))completionHandler;
2727

2828
@end

KeenClient/KIOUploader.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ @interface KIOUploader ()
2020

2121
- (BOOL)isNetworkConnected;
2222

23-
- (void)runUploadFinishedBlock:(void (^)())block;
23+
- (void)runUploadFinishedBlock:(void (^)(void))block;
2424

2525
/**
2626
Handles the HTTP response from the Keen Event API. This involves deserializing the JSON response
@@ -151,7 +151,7 @@ - (BOOL)isNetworkConnected {
151151
return [hostReachability KIOcurrentReachabilityStatus] != NotReachable;
152152
}
153153

154-
- (void)uploadEventsForConfig:(KeenClientConfig *)config completionHandler:(void (^)())completionHandler {
154+
- (void)uploadEventsForConfig:(KeenClientConfig *)config completionHandler:(void (^)(void))completionHandler {
155155
dispatch_async(self.uploadQueue, ^{
156156
if (![self isNetworkConnected]) {
157157
[self runUploadFinishedBlock:completionHandler];
@@ -207,7 +207,7 @@ - (void)uploadEventsForConfig:(KeenClientConfig *)config completionHandler:(void
207207
});
208208
}
209209

210-
- (void)runUploadFinishedBlock:(void (^)())block {
210+
- (void)runUploadFinishedBlock:(void (^)(void))block {
211211
if (block) {
212212
KCLogVerbose(@"Running user-specified block.");
213213
block();

KeenClient/KeenClient.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ typedef void (^AnalysisCompletionBlock)(NSData *responseData, NSURLResponse *res
327327
@param block The block to be executed once uploading is finished, regardless of whether or not the upload succeeded.
328328
The block is also called when no upload was necessary because no events were captured.
329329
*/
330-
- (void)uploadWithFinishedBlock:(void (^)())block;
330+
- (void)uploadWithFinishedBlock:(void (^)(void))block;
331331

332332
/**
333333
Refresh the current geo location. The Keen Client only gets geo at the beginning of each session (i.e. when the client

KeenClient/KeenClient.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ - (void)importFileData {
563563
[KIOFileStore importFileDataWithProjectID:self.config.projectID];
564564
}
565565

566-
- (void)uploadWithFinishedBlock:(void (^)())block {
566+
- (void)uploadWithFinishedBlock:(void (^)(void))block {
567567
[self.uploader uploadEventsForConfig:self.config completionHandler:block];
568568
}
569569

0 commit comments

Comments
 (0)