[libgda: 1/2] Fixing unused variable warning
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda: 1/2] Fixing unused variable warning
- Date: Thu, 25 Jul 2019 17:56:57 +0000 (UTC)
commit bd37a2815b4d21e7ebd2d1d1804e331cbc37b163
Author: Pavlo Solntsev <p sun fun gmail com>
Date: Fri Jul 5 23:13:54 2019 -0500
Fixing unused variable warning
control-center/dsn-config.c | 3 ++-
control-center/gdaui-dsn-editor.c | 12 +++++++++---
control-center/main.c | 20 +++++++++++++++-----
libgda-ui/internal/popup-container.c | 2 +-
4 files changed, 27 insertions(+), 10 deletions(-)
---
diff --git a/control-center/dsn-config.c b/control-center/dsn-config.c
index 2bdb5cbd1..cbb7769d0 100644
--- a/control-center/dsn-config.c
+++ b/control-center/dsn-config.c
@@ -353,7 +353,8 @@ dsn_editor_changed_cb (GdauiDsnEditor *editor, GtkWidget *dsn)
}
static void
-save_cb (GtkButton *button, GtkWidget *dsn)
+save_cb (G_GNUC_UNUSED GtkButton *button,
+ GtkWidget *dsn)
{
DsnConfigPrivate *priv;
priv = g_object_get_data (G_OBJECT (dsn), DSN_CONFIG_DATA);
diff --git a/control-center/gdaui-dsn-editor.c b/control-center/gdaui-dsn-editor.c
index a1abb6bcb..337a6b936 100644
--- a/control-center/gdaui-dsn-editor.c
+++ b/control-center/gdaui-dsn-editor.c
@@ -298,7 +298,9 @@ gdaui_dsn_editor_init (GdauiDsnEditor *config, G_GNUC_UNUSED GdauiDsnEditorClass
}
static void
-dsn_test_cb (G_GNUC_UNUSED GSimpleAction *action, GVariant *state, gpointer data)
+dsn_test_cb (G_GNUC_UNUSED GSimpleAction *action,
+ G_GNUC_UNUSED GVariant *state,
+ gpointer data)
{
GdauiDsnEditor *editor;
editor = GDAUI_DSN_EDITOR (data);
@@ -362,7 +364,9 @@ dsn_test_cb (G_GNUC_UNUSED GSimpleAction *action, GVariant *state, gpointer data
}
static void
-dsn_reset_cb (G_GNUC_UNUSED GSimpleAction *action, GVariant *state, gpointer data)
+dsn_reset_cb (G_GNUC_UNUSED GSimpleAction *action,
+ G_GNUC_UNUSED GVariant *state,
+ gpointer data)
{
GdauiDsnEditor *editor;
editor = GDAUI_DSN_EDITOR (data);
@@ -386,7 +390,9 @@ copy_dlg_entry_changed_cb (GtkEntry *entry, GtkDialog *dlg)
}
static void
-dsn_copy_cb (G_GNUC_UNUSED GSimpleAction *action, GVariant *state, gpointer data)
+dsn_copy_cb (G_GNUC_UNUSED GSimpleAction *action,
+ G_GNUC_UNUSED GVariant *state,
+ gpointer data)
{
GdauiDsnEditor *editor;
editor = GDAUI_DSN_EDITOR (data);
diff --git a/control-center/main.c b/control-center/main.c
index 7db1c7738..2096901de 100644
--- a/control-center/main.c
+++ b/control-center/main.c
@@ -59,7 +59,9 @@ assistant_closed_cb (GdauiDsnAssistant *assistant, G_GNUC_UNUSED gpointer user_d
}
static void
-file_new_cb (G_GNUC_UNUSED GSimpleAction *action, GVariant *parameter, G_GNUC_UNUSED gpointer user_data)
+file_new_cb (G_GNUC_UNUSED GSimpleAction *action,
+ G_GNUC_UNUSED GVariant *parameter,
+ G_GNUC_UNUSED gpointer user_data)
{
GtkWidget *assistant;
@@ -72,7 +74,9 @@ file_new_cb (G_GNUC_UNUSED GSimpleAction *action, GVariant *parameter, G_GNUC_UN
}
static void
-file_delete_cb (G_GNUC_UNUSED GSimpleAction *action, GVariant *parameter, gpointer user_data)
+file_delete_cb (G_GNUC_UNUSED GSimpleAction *action,
+ G_GNUC_UNUSED GVariant *parameter,
+ gpointer user_data)
{
GtkWidget *app_window = GTK_WIDGET (user_data);
GtkWidget *stack, *dsn;
@@ -87,7 +91,9 @@ file_delete_cb (G_GNUC_UNUSED GSimpleAction *action, GVariant *parameter, gpoint
}
static void
-show_datasources_cb (G_GNUC_UNUSED GSimpleAction *unused_action, GVariant *parameter, gpointer user_data)
+show_datasources_cb (G_GNUC_UNUSED GSimpleAction *unused_action,
+ G_GNUC_UNUSED GVariant *parameter,
+ gpointer user_data)
{
GtkWidget *app_window;
GtkWidget *stack;
@@ -103,7 +109,9 @@ show_datasources_cb (G_GNUC_UNUSED GSimpleAction *unused_action, GVariant *param
}
static void
-show_providers_cb (G_GNUC_UNUSED GSimpleAction *unused_action, GVariant *parameter, gpointer user_data)
+show_providers_cb (G_GNUC_UNUSED GSimpleAction *unused_action,
+ G_GNUC_UNUSED GVariant *parameter,
+ gpointer user_data)
{
GtkWidget *app_window;
GtkWidget *stack;
@@ -119,7 +127,9 @@ show_providers_cb (G_GNUC_UNUSED GSimpleAction *unused_action, GVariant *paramet
}
static void
-window_closed_cb (G_GNUC_UNUSED GSimpleAction *action, GVariant *parameter, G_GNUC_UNUSED gpointer user_data)
+window_closed_cb (G_GNUC_UNUSED GSimpleAction *action,
+ G_GNUC_UNUSED GVariant *parameter,
+ G_GNUC_UNUSED gpointer user_data)
{
g_application_quit (G_APPLICATION (app));
}
diff --git a/libgda-ui/internal/popup-container.c b/libgda-ui/internal/popup-container.c
index 05cb0acb9..9bfb5e8f6 100644
--- a/libgda-ui/internal/popup-container.c
+++ b/libgda-ui/internal/popup-container.c
@@ -150,7 +150,7 @@ default_position_func (G_GNUC_UNUSED PopupContainer *container, gint *out_x, gin
}
static gboolean
-popup_grab_on_window (GtkWidget *widget, guint32 activate_time)
+popup_grab_on_window (GtkWidget *widget, G_GNUC_UNUSED guint32 activate_time)
{
GdkSeat *seat;
GdkWindow *window;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]