summaryrefslogtreecommitdiff
path: root/settings
diff options
context:
space:
mode:
authorViktor Odintsev <ninetls@xfce.org>2017-12-27 23:12:25 +0100
committerSimon Steinbeiss <simon.steinbeiss@elfenbeinturm.at>2017-12-27 23:12:56 +0100
commit7d582046a3b2304b2ce03bdbcd69994dae63ea54 (patch)
treee3b236bda450facece2b4bf746270c83b948816c /settings
parent9b50933fc48b812a78f8191a058bf8615a16288e (diff)
downloadixfce4-power-manager-7d582046a3b2304b2ce03bdbcd69994dae63ea54.tar.gz
Fix various warnings
Some are related to Gtk3.22, some are simply compiler warnings.
Diffstat (limited to 'settings')
-rw-r--r--settings/xfpm-settings-app.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/xfpm-settings-app.c b/settings/xfpm-settings-app.c
index 72c48a19..9da47da9 100644
--- a/settings/xfpm-settings-app.c
+++ b/settings/xfpm-settings-app.c
@@ -196,7 +196,6 @@ xfpm_settings_app_launch (GApplication *app)
if (start_xfpm_if_not_running == GTK_RESPONSE_YES)
{
GAppInfo *app_info;
- GError *error = NULL;
app_info = g_app_info_create_from_commandline ("xfce4-power-manager", "Xfce4 Power Manager",
G_APP_INFO_CREATE_SUPPORTS_STARTUP_NOTIFICATION, NULL);
@@ -204,6 +203,7 @@ xfpm_settings_app_launch (GApplication *app)
if (error != NULL) {
g_warning ("xfce4-power-manager could not be launched. %s", error->message);
g_error_free (error);
+ error = NULL;
}
}
/* wait 2 seconds for xfpm to startup */