summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-02-06 17:33:12 +0100
committerZenWalker <[email protected]>2020-03-03 10:43:17 +0100
commit6444fac00d01ad65db5efa4fea5fd1df189c0fe3 (patch)
tree7f4a0e672f3c7889b0f8e943ff62590df0f0a912 /src
parent770aff7cfae9822209e6bf45071c7473e628f7dd (diff)
downloadmate-power-manager-6444fac00d01ad65db5efa4fea5fd1df189c0fe3.tar.bz2
mate-power-manager-6444fac00d01ad65db5efa4fea5fd1df189c0fe3.tar.xz
Remove warnings: unused variable
Diffstat (limited to 'src')
-rw-r--r--src/gpm-engine.c2
-rw-r--r--src/gpm-manager.c1
-rw-r--r--src/gpm-prefs.c1
-rw-r--r--src/gpm-statistics.c1
4 files changed, 0 insertions, 5 deletions
diff --git a/src/gpm-engine.c b/src/gpm-engine.c
index 18f69b8..c626c9f 100644
--- a/src/gpm-engine.c
+++ b/src/gpm-engine.c
@@ -796,8 +796,6 @@ phone_device_refresh_cb (GpmPhone *phone, guint idx, GpmEngine *engine)
static void
gpm_engine_init (GpmEngine *engine)
{
- GPtrArray *array = NULL;
- guint i;
guint idle_id;
engine->priv = gpm_engine_get_instance_private (engine);
diff --git a/src/gpm-manager.c b/src/gpm-manager.c
index d4ed7b5..68330aa 100644
--- a/src/gpm-manager.c
+++ b/src/gpm-manager.c
@@ -949,7 +949,6 @@ static void
gpm_manager_client_changed_cb (UpClient *client, GParamSpec *pspec, GpmManager *manager)
{
gboolean event_when_closed;
- gint timeout;
gboolean on_battery;
gboolean lid_is_closed;
diff --git a/src/gpm-prefs.c b/src/gpm-prefs.c
index 4785cc0..096660f 100644
--- a/src/gpm-prefs.c
+++ b/src/gpm-prefs.c
@@ -67,7 +67,6 @@ main (int argc, char **argv)
gboolean verbose = FALSE;
GOptionContext *context;
GpmPrefs *prefs = NULL;
- gboolean ret;
GtkApplication *app;
GtkWidget *window;
gint status;
diff --git a/src/gpm-statistics.c b/src/gpm-statistics.c
index 9b9b584..4c3da96 100644
--- a/src/gpm-statistics.c
+++ b/src/gpm-statistics.c
@@ -876,7 +876,6 @@ gpm_stats_add_device (UpDevice *device, GPtrArray *devices)
{
const gchar *id;
GtkTreeIter iter;
- const gchar *text;
const gchar *icon;
UpDeviceKind kind;
gchar *label, *vendor, *model;