GNOME Bugzilla – Bug 632581
gdbusmessage.c,gregistrysettingsbackend.c: variables C99ism
Last modified: 2011-01-30 07:35:18 UTC
Some variables are declared at the middle of the block. Old compiler will occur error, because of C99ism. The declaration should be moved to the top of the block.
Created attachment 172743 [details] [review] patch for gdbusmessage.c
Created attachment 172744 [details] [review] patch for gregistrysettingsbackend.c
Comment on attachment 172743 [details] [review] patch for gdbusmessage.c (In reply to comment #1) > { > guint64 v; > gdouble *encoded; > + G_STATIC_ASSERT (sizeof (gdouble) == sizeof (guint64)); > v = g_data_input_stream_read_uint64 (dis, NULL, &local_error); > if (local_error != NULL) > goto fail; > - G_STATIC_ASSERT (sizeof (gdouble) == sizeof (guint64)); > encoded = (gdouble *) &v; > ret = g_variant_new_double (*encoded); > } Sorry, but I don't see how this is wrong.
(In reply to comment #3) > Sorry, but I don't see how this is wrong. G_STATIC_ASSERT expands to typedef, so technically it's a declaration.
This problem was already resolved in #635093. *** This bug has been marked as a duplicate of bug 635093 ***