Mark parameters as unused

This commit is contained in:
Kovid Goyal 2022-01-11 11:26:08 +05:30
parent 0e6091773d
commit 62953c2057
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -374,6 +374,7 @@ cocoa_send_notification(PyObject *self UNUSED, PyObject *args) {
- (void)userNotificationCenter:(UNUserNotificationCenter *)center - (void)userNotificationCenter:(UNUserNotificationCenter *)center
willPresentNotification:(UNNotification *)notification willPresentNotification:(UNNotification *)notification
withCompletionHandler:(void (^)(UNNotificationPresentationOptions))completionHandler { withCompletionHandler:(void (^)(UNNotificationPresentationOptions))completionHandler {
(void)(center); (void)notification;
UNNotificationPresentationOptions options = UNNotificationPresentationOptionSound; UNNotificationPresentationOptions options = UNNotificationPresentationOptionSound;
if (@available(macOS 11.0, *)) options |= UNNotificationPresentationOptionList | UNNotificationPresentationOptionBanner; if (@available(macOS 11.0, *)) options |= UNNotificationPresentationOptionList | UNNotificationPresentationOptionBanner;
else options |= (1 << 2); // UNNotificationPresentationOptionAlert avoid deprecated warning else options |= (1 << 2); // UNNotificationPresentationOptionAlert avoid deprecated warning