]> rtime.felk.cvut.cz Git - sojka/lightdm.git/commitdiff
Fix some problems picked up by -Wall -Werror
authorIain Lane <iain.lane@canonical.com>
Thu, 18 Apr 2013 13:24:40 +0000 (14:24 +0100)
committerIain Lane <iain.lane@canonical.com>
Thu, 18 Apr 2013 13:24:40 +0000 (14:24 +0100)
liblightdm-gobject/power.c
src/session-child.c
src/xserver-local.c

index 1871ccca8efb15695b1f735b5ff6ef4184bc93a0..83b830e7f774412e2339f93a1c7265842d374382 100644 (file)
@@ -22,8 +22,6 @@ static GDBusProxy *login1_proxy = NULL;
 static GVariant *
 upower_call_function (const gchar *function, GError **error)
 {
-    GVariant *result;
-
     if (!upower_proxy)
     {
         upower_proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM,
@@ -51,7 +49,6 @@ static GVariant *
 login1_call_function (const gchar *function, GVariant *parameters, GError **error)
 {
     GVariant *r;
-    gchar *str_result;
 
     if (!login1_proxy)
     {
index c3de5732d09942848dd5ceb0a283b24e82fd90ff..b5ef5325ff81e1b242b3d143a856b5047fff86f0 100644 (file)
@@ -16,6 +16,7 @@
 #include <utmpx.h>
 #include <sys/mman.h>
 
+#include "configuration.h"
 #include "session-child.h"
 #include "session.h"
 #include "console-kit.h"
index 5fd35a380ced462372de267369dc19f80565bd5f..68ab5e03a2259f56ab7bea77366e07ce46c58c88 100644 (file)
@@ -16,6 +16,7 @@
 #include <sys/stat.h>
 #include <errno.h>
 #include <glib/gstdio.h>
+#include <stdlib.h>
 
 #include "xserver-local.h"
 #include "configuration.h"