From b829a57b5af8ebf4f72b6bcd54a1dd616504f34b Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Tue, 20 Apr 2021 13:44:37 +0200 Subject: libayatana-indicator/indicator-image-helper.c: Silence unused parameter warnings/errors for callback functions. --- libayatana-indicator/indicator-image-helper.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libayatana-indicator/indicator-image-helper.c b/libayatana-indicator/indicator-image-helper.c index 27c332f..2c0e244 100644 --- a/libayatana-indicator/indicator-image-helper.c +++ b/libayatana-indicator/indicator-image-helper.c @@ -136,7 +136,7 @@ refresh_image (GtkImage * image) /* Handles the theme changed signal to refresh the icon to make sure that it changes appropriately */ static void -theme_changed_cb (GtkIconTheme * theme, gpointer user_data) +theme_changed_cb (__attribute__((unused)) GtkIconTheme * theme, gpointer user_data) { GtkImage * image = GTK_IMAGE(user_data); refresh_image(image); @@ -146,7 +146,7 @@ theme_changed_cb (GtkIconTheme * theme, gpointer user_data) /* Removes the signal on the theme that was calling update on this image. */ static void -image_destroyed_cb (GtkImage * image, gpointer user_data) +image_destroyed_cb (GtkImage * image, __attribute__((unused)) gpointer user_data) { g_signal_handlers_disconnect_by_func(gtk_icon_theme_get_default(), theme_changed_cb, image); return; @@ -155,7 +155,7 @@ image_destroyed_cb (GtkImage * image, gpointer user_data) /* Catch the style changing on the image to make sure we've got the latest. */ static void -image_style_change_cb (GtkImage * image, GtkStyle * previous_style, gpointer user_data) +image_style_change_cb (GtkImage * image, __attribute__((unused)) GtkStyle * previous_style, __attribute__((unused)) gpointer user_data) { refresh_image(image); return; -- cgit v1.2.3