Commit b1527297 authored by Zach Goldberg's avatar Zach Goldberg Committed by Zeeshan Ali (Khattak)
Browse files

Change type of data in got_introspection to gpointer

On some machines (particularly inside scratchbox) this field would
break GCC's strict aliasing rules with -O2 or higher by casting
from a SubscriptionData to a gpointer.  Since we don't strictly
need it typed as a SubscriptionData and we can let GCC to strict
aliasing with it as a gpointer we can safely type it as just a
gpointer and prevent warnings/errors.

Co-author & reviewer: Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
parent 7f134c67
......@@ -1321,7 +1321,7 @@ got_introspection (GUPnPServiceInfo *info,
GUPnPService *service = user_data;
const GList *state_variables, *l;
GHashTableIter iter;
SubscriptionData *data;
gpointer data;
if (introspection) {
state_variables =
......@@ -1350,8 +1350,8 @@ got_introspection (GUPnPServiceInfo *info,
g_hash_table_iter_init (&iter, service->priv->subscriptions);
while (g_hash_table_iter_next (&iter, NULL, (gpointer*) &data))
send_initial_state (data);
while (g_hash_table_iter_next (&iter, NULL, &data))
send_initial_state ((SubscriptionData *) data);
g_object_unref (service);
}
......
Supports Markdown
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