From 10ef6c38d5fccde52207fba5a9a05ab121530031 Mon Sep 17 00:00:00 2001 From: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Date: Fri, 18 Apr 2014 15:36:07 -0400 Subject: [PATCH] gnome: fix unused parameter warnings This patch uses the G_GNUC_UNUSED macro to fix unused parameter warnings Change-Id: I2efd9baa64d7682110f14bc1c1dd233f7c805c70 --- gnome/src/config/preferencesdialog.c | 3 ++- gnome/src/dbus/dbus.c | 12 ++++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/gnome/src/config/preferencesdialog.c b/gnome/src/config/preferencesdialog.c index d42d91d17e..6083a1f8c3 100644 --- a/gnome/src/config/preferencesdialog.c +++ b/gnome/src/config/preferencesdialog.c @@ -366,7 +366,8 @@ static GtkTreeModel* create_model(GtkWidget *widget) /* Callback used to catch the destroy event send by pressing escape key or the * close button in the preference dialog */ static void -dialog_destroy_cb(GtkWidget *widget, G_GNUC_UNUSED gpointer user_data) +dialog_destroy_cb(G_GNUC_UNUSED GtkWidget *widget, + G_GNUC_UNUSED gpointer user_data) { #ifdef SFL_VIDEO gchar ** str = dbus_get_call_list(); diff --git a/gnome/src/dbus/dbus.c b/gnome/src/dbus/dbus.c index f2ae2adf19..d04e211cc3 100644 --- a/gnome/src/dbus/dbus.c +++ b/gnome/src/dbus/dbus.c @@ -579,9 +579,10 @@ print_rtcp_stats(const gchar *key, gint value, G_GNUC_UNUSED gpointer data) #endif static void -on_rtcp_report_received_cb(G_GNUC_UNUSED DBusGProxy *proxy, const gchar *callID, - const GHashTable *stats, - SFLPhoneClient *client) +on_rtcp_report_received_cb(G_GNUC_UNUSED DBusGProxy *proxy, + const gchar *callID, + G_GNUC_UNUSED const GHashTable *stats, + G_GNUC_UNUSED SFLPhoneClient *client) { g_debug("Daemon notification of new RTCP report for %s", callID); #ifdef RTCP_DEBUG @@ -1148,7 +1149,10 @@ dbus_stop_recorded_file_playback(const gchar *filepath) } static void -hang_up_reply_cb(G_GNUC_UNUSED DBusGProxy *proxy, gboolean is_hung_up, GError *error, G_GNUC_UNUSED gpointer userdata) +hang_up_reply_cb(G_GNUC_UNUSED DBusGProxy *proxy, + G_GNUC_UNUSED gboolean is_hung_up, + GError *error, + G_GNUC_UNUSED gpointer userdata) { check_error(error); } -- GitLab