From 46a1d4287e31459440326cacd3b81226d1f7a06f Mon Sep 17 00:00:00 2001 From: rbuj Date: Mon, 21 Dec 2020 13:36:03 +0100 Subject: Remove warning -Wunused-but-set-variable --- src/gpm-statistics.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/gpm-statistics.c') diff --git a/src/gpm-statistics.c b/src/gpm-statistics.c index 70b99f6..490b49a 100644 --- a/src/gpm-statistics.c +++ b/src/gpm-statistics.c @@ -1202,8 +1202,6 @@ main (int argc, char *argv[]) gint page; gboolean checked; gchar *last_device = NULL; - guint retval; - GError *error = NULL; const GOptionEntry options[] = { { "device", '\0', 0, G_OPTION_ARG_STRING, &last_device, @@ -1242,12 +1240,7 @@ main (int argc, char *argv[]) settings = g_settings_new (GPM_SETTINGS_SCHEMA); /* get UI */ - builder = gtk_builder_new (); - retval = gtk_builder_add_from_resource (builder, "/org/mate/powermanager/statistics/gpm-statistics.ui", &error); - - if (error) { - g_error ("failed to load ui: %s", error->message); - } + builder = gtk_builder_new_from_resource ("/org/mate/powermanager/statistics/gpm-statistics.ui"); /* add history graph */ box = GTK_BOX (gtk_builder_get_object (builder, "hbox_history")); -- cgit v1.2.1