[gnome-keyring] build: Suppress compiler warnings with -Wdiscarded-qualifiers
- From: Daiki Ueno <dueno src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keyring] build: Suppress compiler warnings with -Wdiscarded-qualifiers
- Date: Tue, 20 Mar 2018 02:58:24 +0000 (UTC)
commit e360238029de47cafa974f4e0c2bd4ec793cd84b
Author: Daiki Ueno <dueno src gnome org>
Date: Tue Mar 20 03:42:08 2018 +0100
build: Suppress compiler warnings with -Wdiscarded-qualifiers
daemon/login/gkd-login-interaction.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/daemon/login/gkd-login-interaction.c b/daemon/login/gkd-login-interaction.c
index aba4c4e..9abdd43 100644
--- a/daemon/login/gkd-login-interaction.c
+++ b/daemon/login/gkd-login-interaction.c
@@ -70,7 +70,7 @@ gkd_login_interaction_constructed (GObject *object)
self->login_available = gkd_login_available (self->session);
- if (g_hash_table_contains (self->lookup_fields, XDG_SCHEMA))
+ if (g_hash_table_contains (self->lookup_fields, (gpointer) XDG_SCHEMA))
self->store_fields = g_hash_table_ref (self->lookup_fields);
else {
GHashTableIter iter;
@@ -80,7 +80,7 @@ gkd_login_interaction_constructed (GObject *object)
g_hash_table_iter_init (&iter, self->lookup_fields);
while (g_hash_table_iter_next (&iter, &key, &value))
g_hash_table_insert (self->store_fields, key, value);
- g_hash_table_insert (self->store_fields, XDG_SCHEMA, GENERIC_SCHEMA_VALUE);
+ g_hash_table_insert (self->store_fields, (gpointer) XDG_SCHEMA, (gpointer)
GENERIC_SCHEMA_VALUE);
}
G_OBJECT_CLASS (gkd_login_interaction_parent_class)->constructed (object);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]