Skip to content

Commit

Permalink
Remove warning -Wunused-but-set-variable
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuj authored and raveit65 committed Jan 7, 2021
1 parent 27562e1 commit 46a1d42
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
9 changes: 1 addition & 8 deletions src/gpm-statistics.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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"));
Expand Down
5 changes: 0 additions & 5 deletions src/gsd-media-keys-window.c
Original file line number Diff line number Diff line change
Expand Up @@ -648,12 +648,7 @@ msd_media_keys_window_class_init (MsdMediaKeysWindowClass *klass)
static void
msd_media_keys_window_init (MsdMediaKeysWindow *window)
{
GdkScreen *screen;

window->priv = msd_media_keys_window_get_instance_private (window);

screen = gtk_widget_get_screen (GTK_WIDGET (window));

if (!msd_osd_window_is_composited (MSD_OSD_WINDOW (window))) {
GtkBuilder *builder;
const gchar *objects[] = {"acme_box", NULL};
Expand Down

0 comments on commit 46a1d42

Please sign in to comment.