Skip to content

Commit 1d4e458

Browse files
PeqNPe7mac
authored andcommitted
Removed compiler warnings (#312)
1 parent 291b617 commit 1d4e458

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

Leanplum-SDK/Classes/Features/Actions/LPActionManager.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,10 @@ typedef enum {
6262
fetchCompletionHandler:(LeanplumFetchCompletionBlock)completionHandler;
6363
- (void)didReceiveNotificationResponse:(UNNotificationResponse *)response
6464
withCompletionHandler:(void (^)(void))completionHandler API_AVAILABLE(ios(10.0));
65-
- (void)didReceiveLocalNotification:(UILocalNotification *)localNotification;
66-
6765
#pragma clang diagnostic push
6866
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
6967
#pragma clang diagnostic ignored "-Wstrict-prototypes"
68+
- (void)didReceiveLocalNotification:(UILocalNotification *)localNotification;
7069

7170
- (void)didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings;
7271
- (void)sendUserNotificationSettingsIfChanged:(UIUserNotificationSettings *)notificationSettings;

Leanplum-SDK/Classes/Leanplum.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,12 +463,20 @@ typedef void (^LeanplumMessageDisplayedCallbackBlock)(LPMessageArchiveData *mess
463463

464464
+ (void)didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)token;
465465
+ (void)didFailToRegisterForRemoteNotificationsWithError:(NSError *)error;
466+
#pragma clang diagnostic push
467+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
468+
#pragma clang diagnostic ignored "-Wstrict-prototypes"
466469
+ (void)didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings;
470+
#pragma clang diagnostic pop
467471
+ (void)didReceiveRemoteNotification:(NSDictionary *)userInfo;
468472
+ (void)didReceiveRemoteNotification:(NSDictionary *)userInfo
469473
fetchCompletionHandler:(LeanplumFetchCompletionBlock)completionHandler;
470474
+ (void)didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void (^)(void))completionHandler API_AVAILABLE(ios(10.0));
475+
#pragma clang diagnostic push
476+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
477+
#pragma clang diagnostic ignored "-Wstrict-prototypes"
471478
+ (void)didReceiveLocalNotification:(UILocalNotification *)localNotification;
479+
#pragma clang diagnostic pop
472480

473481
/**
474482
* Call this to handle custom actions for local notifications.

0 commit comments

Comments
 (0)