mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
Mark parameters as unused
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user