[PolicyKit-gnome] Fix warnings with gcc 4.6
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [PolicyKit-gnome] Fix warnings with gcc 4.6
- Date: Thu, 3 Mar 2011 18:45:50 +0000 (UTC)
commit 3bd25238ed1513c97ce6e99f133bfb2bc955135a
Author: David Zeuthen <davidz redhat com>
Date: Thu Mar 3 13:45:40 2011 -0500
Fix warnings with gcc 4.6
Signed-off-by: David Zeuthen <davidz redhat com>
src/main.c | 3 ++-
src/polkitgnomelistener.c | 4 ----
2 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index a6b3de0..06d35b2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -36,6 +36,8 @@ static PolkitAuthority *authority = NULL;
/* the session we are servicing */
static PolkitSubject *session = NULL;
+static GDBusConnection *session_bus_connection = NULL;
+
int
main (int argc, char **argv)
{
@@ -43,7 +45,6 @@ main (int argc, char **argv)
GMainLoop *loop;
PolkitAgentListener *listener;
GError *error;
- GDBusConnection *session_bus_connection;
g_type_init ();
gtk_init (&argc, &argv);
diff --git a/src/polkitgnomelistener.c b/src/polkitgnomelistener.c
index 8309431..21de92f 100644
--- a/src/polkitgnomelistener.c
+++ b/src/polkitgnomelistener.c
@@ -68,10 +68,6 @@ polkit_gnome_listener_init (PolkitGnomeListener *listener)
static void
polkit_gnome_listener_finalize (GObject *object)
{
- PolkitGnomeListener *listener;
-
- listener = POLKIT_GNOME_LISTENER (object);
-
if (G_OBJECT_CLASS (polkit_gnome_listener_parent_class)->finalize != NULL)
G_OBJECT_CLASS (polkit_gnome_listener_parent_class)->finalize (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]