From 4e91cdfd790ea2143d1a5f342755cb472646da5b Mon Sep 17 00:00:00 2001 From: adimango Date: Mon, 26 Mar 2018 16:17:38 +0200 Subject: [PATCH] Fixed warnings for function with not arguments and block with no (void) --- evernote-sdk-ios/ENSDK/Advanced/ENNoteStoreClient.h | 6 +++--- evernote-sdk-ios/ENSDK/Advanced/ENNoteStoreClient.m | 6 +++--- evernote-sdk-ios/ENSDK/Advanced/ENUserStoreClient.h | 2 +- evernote-sdk-ios/ENSDK/Advanced/ENUserStoreClient.m | 2 +- evernote-sdk-ios/ENSDK/ENCommonUtils.h | 4 ++-- evernote-sdk-ios/ENSDK/Private/ENStoreClient.h | 4 ++-- evernote-sdk-ios/ENSDK/Private/ENStoreClient.m | 4 ++-- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/evernote-sdk-ios/ENSDK/Advanced/ENNoteStoreClient.h b/evernote-sdk-ios/ENSDK/Advanced/ENNoteStoreClient.h index ee0ef1c..8efa7d0 100644 --- a/evernote-sdk-ios/ENSDK/Advanced/ENNoteStoreClient.h +++ b/evernote-sdk-ios/ENSDK/Advanced/ENNoteStoreClient.h @@ -962,7 +962,7 @@ DEPRECATED_MSG_ATTRIBUTE("Use -createTag:completion: instead") NS_SWIFT_UNAVAILA DEPRECATED_MSG_ATTRIBUTE("Use -updateTag:completion: instead") NS_SWIFT_UNAVAILABLE("Deprecated"); - (void)untagAllWithGuid:(EDAMGuid)guid - success:(void(^)())success + success:(void(^)(void))success failure:(void(^)(NSError *error))failure DEPRECATED_MSG_ATTRIBUTE("Use -untagAllWithGuid:completion: instead") NS_SWIFT_UNAVAILABLE("Deprecated"); @@ -1256,7 +1256,7 @@ DEPRECATED_MSG_ATTRIBUTE("Use -authenticateToSharedNotebook:completion: instead" DEPRECATED_MSG_ATTRIBUTE("Use -getSharedNotebookByAuthWithCompletion: instead") NS_SWIFT_UNAVAILABLE("Deprecated"); - (void)emailNoteWithParameters:(EDAMNoteEmailParameters *)parameters - success:(void(^)())success + success:(void(^)(void))success failure:(void(^)(NSError *error))failure DEPRECATED_MSG_ATTRIBUTE("Use -emailNoteWithParameters:completion: instead") NS_SWIFT_UNAVAILABLE("Deprecated"); @@ -1266,7 +1266,7 @@ DEPRECATED_MSG_ATTRIBUTE("Use -emailNoteWithParameters:completion: instead") NS_ DEPRECATED_MSG_ATTRIBUTE("Use -shareNoteWithGuid:completion: instead") NS_SWIFT_UNAVAILABLE("Deprecated"); - (void)stopSharingNoteWithGuid:(EDAMGuid)guid - success:(void(^)())success + success:(void(^)(void))success failure:(void(^)(NSError *error))failure DEPRECATED_MSG_ATTRIBUTE("Use -stopSharingNoteWithGuid:completion: instead") NS_SWIFT_UNAVAILABLE("Deprecated"); diff --git a/evernote-sdk-ios/ENSDK/Advanced/ENNoteStoreClient.m b/evernote-sdk-ios/ENSDK/Advanced/ENNoteStoreClient.m index 0c575b2..a282a45 100644 --- a/evernote-sdk-ios/ENSDK/Advanced/ENNoteStoreClient.m +++ b/evernote-sdk-ios/ENSDK/Advanced/ENNoteStoreClient.m @@ -1023,7 +1023,7 @@ - (void)updateTag:(EDAMTag *)tag } - (void)untagAllWithGuid:(EDAMGuid)guid - success:(void(^)())success + success:(void(^)(void))success failure:(void(^)(NSError *error))failure { [self untagAllWithGuid:guid completion:^(NSError * _Nonnull error) { @@ -1569,7 +1569,7 @@ - (void)getSharedNotebookByAuthWithSuccess:(void(^)(EDAMSharedNotebook *sharedNo } - (void)emailNoteWithParameters:(EDAMNoteEmailParameters *)parameters - success:(void(^)())success + success:(void(^)(void))success failure:(void(^)(NSError *error))failure { [self emailNoteWithParameters:parameters completion:^(NSError * _Nonnull error) { @@ -1587,7 +1587,7 @@ - (void)shareNoteWithGuid:(EDAMGuid)guid } - (void)stopSharingNoteWithGuid:(EDAMGuid)guid - success:(void(^)())success + success:(void(^)(void))success failure:(void(^)(NSError *error))failure { [self stopSharingNoteWithGuid:guid completion:^(NSError * _Nonnull error) { diff --git a/evernote-sdk-ios/ENSDK/Advanced/ENUserStoreClient.h b/evernote-sdk-ios/ENSDK/Advanced/ENUserStoreClient.h index a6bb949..132f57b 100644 --- a/evernote-sdk-ios/ENSDK/Advanced/ENUserStoreClient.h +++ b/evernote-sdk-ios/ENSDK/Advanced/ENUserStoreClient.h @@ -150,7 +150,7 @@ NS_ASSUME_NONNULL_BEGIN DEPRECATED_MSG_ATTRIBUTE("Use -authenticateToBusinessWithCompletion: instead") NS_SWIFT_UNAVAILABLE("Deprecated"); - (void)revokeLongSessionWithAuthenticationToken:(NSString*)authenticationToken - success:(void(^)())success + success:(void(^)(void))success failure:(void(^)(NSError *error))failure DEPRECATED_MSG_ATTRIBUTE("Use -revokeLongSessionWithAuthenticationToken:completion: instead") NS_SWIFT_UNAVAILABLE("Deprecated"); @end diff --git a/evernote-sdk-ios/ENSDK/Advanced/ENUserStoreClient.m b/evernote-sdk-ios/ENSDK/Advanced/ENUserStoreClient.m index e43ffcf..cd0064a 100644 --- a/evernote-sdk-ios/ENSDK/Advanced/ENUserStoreClient.m +++ b/evernote-sdk-ios/ENSDK/Advanced/ENUserStoreClient.m @@ -192,7 +192,7 @@ - (void)authenticateToBusinessWithSuccess:(void(^)(EDAMAuthenticationResult *aut } - (void)revokeLongSessionWithAuthenticationToken:(NSString*)authenticationToken - success:(void(^)())success + success:(void(^)(void))success failure:(void(^)(NSError *error))failure { [self revokeLongSessionWithAuthenticationToken:authenticationToken completion:^(NSError *error) { (error == nil) ? success() : failure(error); diff --git a/evernote-sdk-ios/ENSDK/ENCommonUtils.h b/evernote-sdk-ios/ENSDK/ENCommonUtils.h index 1b32d2c..10e4c75 100644 --- a/evernote-sdk-ios/ENSDK/ENCommonUtils.h +++ b/evernote-sdk-ios/ENSDK/ENCommonUtils.h @@ -10,7 +10,7 @@ @interface ENCommonUtils : NSObject -BOOL IsIOS8(); -BOOL IsEvernoteInstalled(); +BOOL IsIOS8(void); +BOOL IsEvernoteInstalled(void); @end diff --git a/evernote-sdk-ios/ENSDK/Private/ENStoreClient.h b/evernote-sdk-ios/ENSDK/Private/ENStoreClient.h index e326b4c..48bdc2f 100644 --- a/evernote-sdk-ios/ENSDK/Private/ENStoreClient.h +++ b/evernote-sdk-ios/ENSDK/Private/ENStoreClient.h @@ -35,9 +35,9 @@ extern NSString * ENStoreClientDidFailWithAuthenticationErrorNotification; @interface ENStoreClient : NSObject -- (void)invokeAsyncBoolBlock:(BOOL(^)())block completion:(void (^)(BOOL value, NSError *_Nullable error))completion; +- (void)invokeAsyncBoolBlock:(BOOL(^)(void))block completion:(void (^)(BOOL value, NSError *_Nullable error))completion; - (void)invokeAsyncObjectBlock:(nullable id(^)())block completion:(void (^)(id _Nullable value, NSError *_Nullable error))completion; -- (void)invokeAsyncInt32Block:(int32_t(^)())block completion:(void (^)(int32_t value, NSError *_Nullable error))completion; +- (void)invokeAsyncInt32Block:(int32_t(^)(void))block completion:(void (^)(int32_t value, NSError *_Nullable error))completion; - (void)invokeAsyncBlock:(void(^)())block completion:(void (^)(NSError *_Nullable error))completion; @end diff --git a/evernote-sdk-ios/ENSDK/Private/ENStoreClient.m b/evernote-sdk-ios/ENSDK/Private/ENStoreClient.m index d0a596a..cc2eb91 100644 --- a/evernote-sdk-ios/ENSDK/Private/ENStoreClient.m +++ b/evernote-sdk-ios/ENSDK/Private/ENStoreClient.m @@ -50,7 +50,7 @@ - (id)init return self; } -- (void)invokeAsyncBoolBlock:(BOOL(^)())block completion:(void (^)(BOOL val, NSError *error))completion +- (void)invokeAsyncBoolBlock:(BOOL(^)(void))block completion:(void (^)(BOOL val, NSError *error))completion { dispatch_async(self.queue, ^(void) { __block BOOL retVal = NO; @@ -68,7 +68,7 @@ - (void)invokeAsyncBoolBlock:(BOOL(^)())block completion:(void (^)(BOOL val, NSE }); } -- (void)invokeAsyncInt32Block:(int32_t(^)())block completion:(void (^)(int32_t val, NSError *_Nullable error))completion +- (void)invokeAsyncInt32Block:(int32_t(^)(void))block completion:(void (^)(int32_t val, NSError *_Nullable error))completion { dispatch_async(self.queue, ^(void) { __block int32_t retVal = -1;