From c40775b7daa1589ed53eaa792a6e1a0637f0fc81 Mon Sep 17 00:00:00 2001 From: mjk Date: Mon, 22 Mar 2021 13:59:49 +0000 Subject: [PATCH] comment out unused arguments [-Wunused-parameter] --- .../api/src/gobject/winrt-event-token.cpp | 4 ++-- .../api/src/gobject/winrt-toast-notification.cpp | 8 ++++---- .../api/src/gobject/winrt-toast-notifier.cpp | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/plugins/windows-notification/api/src/gobject/winrt-event-token.cpp b/plugins/windows-notification/api/src/gobject/winrt-event-token.cpp index 617f3878..df912e86 100644 --- a/plugins/windows-notification/api/src/gobject/winrt-event-token.cpp +++ b/plugins/windows-notification/api/src/gobject/winrt-event-token.cpp @@ -26,7 +26,7 @@ static void winrt_event_token_class_init (winrtEventTokenClass* klass) gobject_class->finalize = winrt_event_token_finalize; } -static void winrt_event_token_init (winrtEventToken *self) +static void winrt_event_token_init (winrtEventToken */*self*/) { } @@ -73,4 +73,4 @@ gint64 winrt_event_token_get_value(winrtEventToken* self) g_return_val_if_fail (WINRT_IS_EVENT_TOKEN (self), 0); return winrt_event_token_get_internal(self)->value; -} \ No newline at end of file +} diff --git a/plugins/windows-notification/api/src/gobject/winrt-toast-notification.cpp b/plugins/windows-notification/api/src/gobject/winrt-toast-notification.cpp index 822484f8..32411e7d 100644 --- a/plugins/windows-notification/api/src/gobject/winrt-toast-notification.cpp +++ b/plugins/windows-notification/api/src/gobject/winrt-toast-notification.cpp @@ -130,7 +130,7 @@ static void winrt_windows_ui_notifications_toast_notification_class_init (winrtW gobject_class->finalize = winrt_windows_ui_notifications_toast_notification_finalize; } -static void winrt_windows_ui_notifications_toast_notification_init (winrtWindowsUINotificationsToastNotification *self) +static void winrt_windows_ui_notifications_toast_notification_init (winrtWindowsUINotificationsToastNotification */*self*/) { } @@ -251,7 +251,7 @@ winrtEventToken* winrt_windows_ui_notifications_toast_notification_Activated(win winrtWindowsUINotificationsToastNotificationPrivate* priv = WINRT_WINDOWS_UI_NOTIFICATION_TOAST_NOTIFICATION_GET_PRIVATE(self); auto callback_data = std::make_shared>(callback, context, free); - auto token = priv->notification->data.Activated([=](auto sender, winrt::Windows::Foundation::IInspectable inspectable) + auto token = priv->notification->data.Activated([=](auto /*sender*/, winrt::Windows::Foundation::IInspectable inspectable) { std::wstring arguments; std::vector> user_input; @@ -293,7 +293,7 @@ winrtEventToken* winrt_windows_ui_notifications_toast_notification_Failed(winrtW winrtWindowsUINotificationsToastNotificationPrivate* priv = WINRT_WINDOWS_UI_NOTIFICATION_TOAST_NOTIFICATION_GET_PRIVATE(self); auto callback_data = std::make_shared>(callback, context, free); - auto token = priv->notification->data.Failed([=](auto sender, auto toastFailedEventArgs) + auto token = priv->notification->data.Failed([=](auto /*sender*/, auto /*toastFailedEventArgs*/) { callback_data->callback(callback_data->context); }); @@ -312,7 +312,7 @@ winrtEventToken* winrt_windows_ui_notifications_toast_notification_Dismissed(win winrtWindowsUINotificationsToastNotificationPrivate* priv = WINRT_WINDOWS_UI_NOTIFICATION_TOAST_NOTIFICATION_GET_PRIVATE(self); auto callback_data = std::make_shared>(callback, context, free); - auto token = priv->notification->data.Dismissed([=](auto sender, winrt::Windows::UI::Notifications::ToastDismissedEventArgs dismissed) + auto token = priv->notification->data.Dismissed([=](auto /*sender*/, winrt::Windows::UI::Notifications::ToastDismissedEventArgs dismissed) { auto reason = dismissed.Reason(); callback_data->callback(static_cast(reason), callback_data->context); diff --git a/plugins/windows-notification/api/src/gobject/winrt-toast-notifier.cpp b/plugins/windows-notification/api/src/gobject/winrt-toast-notifier.cpp index 5734cdd7..e32e3fc6 100644 --- a/plugins/windows-notification/api/src/gobject/winrt-toast-notifier.cpp +++ b/plugins/windows-notification/api/src/gobject/winrt-toast-notifier.cpp @@ -37,7 +37,7 @@ static void winrt_windows_ui_notifications_toast_notifier_class_init (winrtWindo gobject_class->finalize = winrt_windows_ui_notifications_toast_notifier_finalize; } -static void winrt_windows_ui_notifications_toast_notifier_init (winrtWindowsUINotificationsToastNotifier *self) +static void winrt_windows_ui_notifications_toast_notifier_init (winrtWindowsUINotificationsToastNotifier */*self*/) { } @@ -105,4 +105,4 @@ void winrt_windows_ui_notifications_toast_notifier_Hide(winrtWindowsUINotificati g_return_if_fail (WINRT_IS_WINDOWS_UI_NOTIFICATIONS_TOAST_NOTIFICATION (toast_notification)); winrt_windows_ui_notifications_toast_notifier_get_internal(self)->Hide(*winrt_windows_ui_notifications_toast_notification_get_internal(toast_notification)); -} \ No newline at end of file +}