aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firebase/Messaging/FIRMessagingRemoteNotificationsProxy.m
diff options
context:
space:
mode:
authorGravatar Paul Beusterien <paulbeusterien@google.com>2017-10-09 14:18:11 -0700
committerGravatar GitHub <noreply@github.com>2017-10-09 14:18:11 -0700
commitde481f78f0263281c78522f4af2688a1414932f9 (patch)
tree7c1a24d671042266be5b060caab8f34050edf582 /Firebase/Messaging/FIRMessagingRemoteNotificationsProxy.m
parentb2a169f08a73300d0ee51c5cbd211d29de1cf62f (diff)
Add void's to eliminate Xcode 9.1 warnings (#352)
Diffstat (limited to 'Firebase/Messaging/FIRMessagingRemoteNotificationsProxy.m')
-rw-r--r--Firebase/Messaging/FIRMessagingRemoteNotificationsProxy.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/Firebase/Messaging/FIRMessagingRemoteNotificationsProxy.m b/Firebase/Messaging/FIRMessagingRemoteNotificationsProxy.m
index 8790132..0b8d92b 100644
--- a/Firebase/Messaging/FIRMessagingRemoteNotificationsProxy.m
+++ b/Firebase/Messaging/FIRMessagingRemoteNotificationsProxy.m
@@ -509,7 +509,7 @@ void FCM_swizzle_willPresentNotificationWithHandler(
FIRMessagingRemoteNotificationsProxy *proxy = [FIRMessagingRemoteNotificationsProxy sharedProxy];
IMP original_imp = [proxy originalImplementationForSelector:_cmd];
- void (^callOriginalMethodIfAvailable)() = ^{
+ void (^callOriginalMethodIfAvailable)(void) = ^{
if (original_imp) {
((void (*)(id, SEL, id, id, void (^)(NSUInteger)))original_imp)(
self, _cmd, center, notification, handler);
@@ -569,12 +569,12 @@ void FCM_swizzle_willPresentNotificationWithHandler(
* parameter types from the swizzling implementation.
*/
void FCM_swizzle_didReceiveNotificationResponseWithHandler(
- id self, SEL _cmd, id center, id response, void (^handler)()) {
+ id self, SEL _cmd, id center, id response, void (^handler)(void)) {
FIRMessagingRemoteNotificationsProxy *proxy = [FIRMessagingRemoteNotificationsProxy sharedProxy];
IMP original_imp = [proxy originalImplementationForSelector:_cmd];
- void (^callOriginalMethodIfAvailable)() = ^{
+ void (^callOriginalMethodIfAvailable)(void) = ^{
if (original_imp) {
((void (*)(id, SEL, id, id, void (^)(void)))original_imp)(
self, _cmd, center, response, handler);