Commit 302d2b6a authored by David Zeuthen's avatar David Zeuthen
Browse files

Fix a couple of warnings triggered by gcc 4.6


Signed-off-by: default avatarDavid Zeuthen <davidz@redhat.com>
parent 02cebdb0
...@@ -66,10 +66,6 @@ polkit_backend_null_authority_init (PolkitBackendNullAuthority *authority) ...@@ -66,10 +66,6 @@ polkit_backend_null_authority_init (PolkitBackendNullAuthority *authority)
static void static void
polkit_backend_null_authority_finalize (GObject *object) polkit_backend_null_authority_finalize (GObject *object)
{ {
PolkitBackendNullAuthority *authority;
authority = POLKIT_BACKEND_NULL_AUTHORITY (object);
G_OBJECT_CLASS (polkit_backend_null_authority_parent_class)->finalize (object); G_OBJECT_CLASS (polkit_backend_null_authority_parent_class)->finalize (object);
} }
......
...@@ -535,9 +535,6 @@ acquire_cb (GObject *source_object, ...@@ -535,9 +535,6 @@ acquire_cb (GObject *source_object,
AcquireData *data = user_data; AcquireData *data = user_data;
PolkitAuthorizationResult *result; PolkitAuthorizationResult *result;
GError *error; GError *error;
gboolean ret;
ret = FALSE;
error = NULL; error = NULL;
result = polkit_authority_check_authorization_finish (data->permission->authority, result = polkit_authority_check_authorization_finish (data->permission->authority,
......
...@@ -572,13 +572,10 @@ polkit_agent_session_initiate (PolkitAgentSession *session) ...@@ -572,13 +572,10 @@ polkit_agent_session_initiate (PolkitAgentSession *session)
uid_t uid; uid_t uid;
GError *error; GError *error;
gchar *helper_argv[4]; gchar *helper_argv[4];
gboolean ret;
struct passwd *passwd; struct passwd *passwd;
g_return_if_fail (POLKIT_AGENT_IS_SESSION (session)); g_return_if_fail (POLKIT_AGENT_IS_SESSION (session));
ret = FALSE;
if (G_UNLIKELY (_show_debug ())) if (G_UNLIKELY (_show_debug ()))
{ {
gchar *s; gchar *s;
......
...@@ -1043,12 +1043,9 @@ process_policy_file (PolkitBackendActionPool *pool, ...@@ -1043,12 +1043,9 @@ process_policy_file (PolkitBackendActionPool *pool,
const gchar *xml, const gchar *xml,
GError **error) GError **error)
{ {
gboolean ret;
ParserData pd; ParserData pd;
int xml_res; int xml_res;
ret = FALSE;
/* clear parser data */ /* clear parser data */
memset (&pd, 0, sizeof (ParserData)); memset (&pd, 0, sizeof (ParserData));
......
...@@ -277,7 +277,7 @@ polkit_backend_interactive_authority_init (PolkitBackendInteractiveAuthority *au ...@@ -277,7 +277,7 @@ polkit_backend_interactive_authority_init (PolkitBackendInteractiveAuthority *au
static volatile GQuark domain = 0; static volatile GQuark domain = 0;
/* Force registering error domain */ /* Force registering error domain */
domain = POLKIT_ERROR; domain = POLKIT_ERROR; domain;
priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (authority); priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (authority);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment