summaryrefslogtreecommitdiff
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
parent770aff7cfae9822209e6bf45071c7473e628f7dd (diff)
downloadmate-power-manager-6444fac00d01ad65db5efa4fea5fd1df189c0fe3.tar.bz2
mate-power-manager-6444fac00d01ad65db5efa4fea5fd1df189c0fe3.tar.xz
Remove warnings: unused variable
-rw-r--r--applets/brightness/brightness-applet.c2
-rw-r--r--applets/inhibit/inhibit-applet.c2
-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
6 files changed, 0 insertions, 9 deletions
diff --git a/applets/brightness/brightness-applet.c b/applets/brightness/brightness-applet.c
index 240cff8..168d849 100644
--- a/applets/brightness/brightness-applet.c
+++ b/applets/brightness/brightness-applet.c
@@ -963,8 +963,6 @@ gpm_brightness_applet_name_vanished_cb (GDBusConnection *connection,
static void
gpm_brightness_applet_init (GpmBrightnessApplet *applet)
{
- DBusGConnection *connection;
-
/* initialize fields */
applet->size = 0;
applet->call_worked = TRUE;
diff --git a/applets/inhibit/inhibit-applet.c b/applets/inhibit/inhibit-applet.c
index 23087ef..82403b3 100644
--- a/applets/inhibit/inhibit-applet.c
+++ b/applets/inhibit/inhibit-applet.c
@@ -445,8 +445,6 @@ gpm_inhibit_applet_name_vanished_cb (GDBusConnection *connection,
static void
gpm_inhibit_applet_init (GpmInhibitApplet *applet)
{
- DBusGConnection *connection;
-
/* initialize fields */
applet->image = NULL;
applet->cookie = 0;
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;