From 62953c2057e073fe24fbef566cd3d1182ad692ed Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 11 Jan 2022 11:26:08 +0530 Subject: [PATCH] Mark parameters as unused --- kitty/cocoa_window.m | 1 + 1 file changed, 1 insertion(+) diff --git a/kitty/cocoa_window.m b/kitty/cocoa_window.m index a9ad95243..19e768056 100644 --- a/kitty/cocoa_window.m +++ b/kitty/cocoa_window.m @@ -374,6 +374,7 @@ cocoa_send_notification(PyObject *self UNUSED, PyObject *args) { - (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