From 43cab5eefefb6242b27c97dd126e200f04747694 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Bonithon?= Date: Sat, 23 Jan 2021 19:59:41 +0100 Subject: Fix compilation warnings --- thunar-volman-settings/tvm-command-entry.c | 36 +----------------------------- thunar-volman/tvm-device.c | 2 ++ 2 files changed, 3 insertions(+), 35 deletions(-) diff --git a/thunar-volman-settings/tvm-command-entry.c b/thunar-volman-settings/tvm-command-entry.c index 0821c63..d168279 100644 --- a/thunar-volman-settings/tvm-command-entry.c +++ b/thunar-volman-settings/tvm-command-entry.c @@ -48,8 +48,6 @@ enum -static void tvm_command_entry_class_init (TvmCommandEntryClass *klass); -static void tvm_command_entry_init (TvmCommandEntry *command_entry); static void tvm_command_entry_finalize (GObject *object); static void tvm_command_entry_get_property (GObject *object, guint prop_id, @@ -64,36 +62,7 @@ static void tvm_command_entry_clicked (GtkWidget *button, -static GObjectClass *tvm_command_entry_parent_class; - - - -GType -tvm_command_entry_get_type (void) -{ - static GType type = G_TYPE_INVALID; - - if (G_UNLIKELY (type == G_TYPE_INVALID)) - { - static const GTypeInfo info = - { - sizeof (TvmCommandEntryClass), - NULL, - NULL, - (GClassInitFunc) tvm_command_entry_class_init, - NULL, - NULL, - sizeof (TvmCommandEntry), - 0, - (GInstanceInitFunc) tvm_command_entry_init, - NULL, - }; - - type = g_type_register_static (GTK_TYPE_BOX, I_("TvmCommandEntry"), &info, 0); - } - - return type; -} +G_DEFINE_TYPE (TvmCommandEntry, tvm_command_entry, GTK_TYPE_BOX) @@ -102,9 +71,6 @@ tvm_command_entry_class_init (TvmCommandEntryClass *klass) { GObjectClass *gobject_class; - /* determine the parent type class */ - tvm_command_entry_parent_class = g_type_class_peek_parent (klass); - gobject_class = G_OBJECT_CLASS (klass); gobject_class->finalize = tvm_command_entry_finalize; gobject_class->get_property = tvm_command_entry_get_property; diff --git a/thunar-volman/tvm-device.c b/thunar-volman/tvm-device.c index 90cf94b..854fee5 100644 --- a/thunar-volman/tvm-device.c +++ b/thunar-volman/tvm-device.c @@ -106,7 +106,9 @@ tvm_device_try_next_handler (TvmContext *context) void tvm_device_added (TvmContext *context) { +#ifdef DEBUG const gchar *const *keys = NULL; +#endif const gchar *subsystem; gint n; -- cgit v1.2.1