Mark parameters as unused
This commit is contained in:
parent
0e6091773d
commit
62953c2057
1 changed files with 1 additions and 0 deletions
|
|
@ -374,6 +374,7 @@ @implementation NotificationDelegate
|
|||
- (void)userNotificationCenter:(UNUserNotificationCenter *)center
|
||||
willPresentNotification:(UNNotification *)notification
|
||||
withCompletionHandler:(void (^)(UNNotificationPresentationOptions))completionHandler {
|
||||
(void)(center); (void)notification;
|
||||
UNNotificationPresentationOptions options = UNNotificationPresentationOptionSound;
|
||||
if (@available(macOS 11.0, *)) options |= UNNotificationPresentationOptionList | UNNotificationPresentationOptionBanner;
|
||||
else options |= (1 << 2); // UNNotificationPresentationOptionAlert avoid deprecated warning
|
||||
|
|
|
|||
Loading…
Reference in a new issue