[gnome-session] gsm-consolekit: fix GCC warnings
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-session] gsm-consolekit: fix GCC warnings
- Date: Fri, 5 Dec 2014 19:50:26 +0000 (UTC)
commit 42111b2261ef199aea1ddf1a227dcc50659072a3
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sat Oct 25 15:54:17 2014 -0700
gsm-consolekit: fix GCC warnings
https://bugzilla.gnome.org/show_bug.cgi?id=622924
gnome-session/gsm-consolekit.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gnome-session/gsm-consolekit.c b/gnome-session/gsm-consolekit.c
index 54a6d83..62fa592 100644
--- a/gnome-session/gsm-consolekit.c
+++ b/gnome-session/gsm-consolekit.c
@@ -954,9 +954,8 @@ gsm_consolekit_is_login_session (GsmSystem *system)
static gboolean
gsm_consolekit_can_suspend (GsmSystem *system)
{
- GsmConsolekit *consolekit = GSM_CONSOLEKIT (system);
-
#ifdef HAVE_OLD_UPOWER
+ GsmConsolekit *consolekit = GSM_CONSOLEKIT (system);
return up_client_get_can_suspend (consolekit->priv->up_client);
#else
return FALSE;
@@ -966,9 +965,8 @@ gsm_consolekit_can_suspend (GsmSystem *system)
static gboolean
gsm_consolekit_can_hibernate (GsmSystem *system)
{
- GsmConsolekit *consolekit = GSM_CONSOLEKIT (system);
-
#ifdef HAVE_OLD_UPOWER
+ GsmConsolekit *consolekit = GSM_CONSOLEKIT (system);
return up_client_get_can_hibernate (consolekit->priv->up_client);
#else
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]