[gnome-control-center/wip/gbsneto/new-network-panel: 23/26] network: Prevent compile warning
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/gbsneto/new-network-panel: 23/26] network: Prevent compile warning
- Date: Tue, 25 Jul 2017 02:47:12 +0000 (UTC)
commit a11c213c35d6e413afef3b33fe8723fb7d72034b
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Jul 21 11:52:13 2017 -0300
network: Prevent compile warning
If we build with strict compile check, the pointer
alignment gets messed up. So just cast to gpointer
to satisfy the compiler.
panels/network/cc-network-panel.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/network/cc-network-panel.c b/panels/network/cc-network-panel.c
index 9481c4c..db1841c 100644
--- a/panels/network/cc-network-panel.c
+++ b/panels/network/cc-network-panel.c
@@ -147,7 +147,7 @@ variant_av_to_string_array (GVariant *array)
count = g_variant_iter_init (&iter, array);
strv = g_ptr_array_sized_new (count + 1);
while (g_variant_iter_next (&iter, "v", &v)) {
- g_ptr_array_add (strv, (gpointer *)g_variant_get_string (v, NULL));
+ g_ptr_array_add (strv, (gpointer)g_variant_get_string (v, NULL));
g_variant_unref (v);
}
g_ptr_array_add (strv, NULL); /* NULL-terminate the strv data array */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]