work around SGI IDO cc, fixes #363986.
authorTim Janik <timj@imendio.com>
Thu, 14 Jun 2007 20:56:15 +0000 (20:56 +0000)
committerTim Janik <timj@src.gnome.org>
Thu, 14 Jun 2007 20:56:15 +0000 (20:56 +0000)
Thu Jun 14 22:33:11 2007  Tim Janik  <timj@imendio.com>

        * gparamspecs.c (g_param_spec_types_init): work around SGI IDO cc,
        fixes #363986.

svn path=/trunk/; revision=5559

gobject/ChangeLog
gobject/gparamspecs.c

index a95eef29b71735bdafa54afb4d90ca974b458b3c..fcac666514f7e6ad0ef6f3ecc2ce1695cf578216 100644 (file)
@@ -1,3 +1,8 @@
+Thu Jun 14 22:33:11 2007  Tim Janik  <timj@imendio.com>
+
+       * gparamspecs.c (g_param_spec_types_init): work around SGI IDO cc,
+       fixes #363986.
+
 2007-06-05  Matthias Clasen  <mclasen@redhat.com>
 
        * === Released 2.13.4 ===
index 5ba897711af90adf818c2e71e11f718922d860b7..30c744b0e93215e5ecf5952c9c9dcb87420c56ba 100644 (file)
@@ -1470,17 +1470,17 @@ g_param_spec_types_init (void)
   /* G_TYPE_PARAM_GTYPE
    */
   {
-    GType value_type = G_TYPE_GTYPE;
     GParamSpecTypeInfo pspec_info = {
       sizeof (GParamSpecGType),        /* instance_size */
       0,                       /* n_preallocs */
       param_gtype_init,                /* instance_init */
-      value_type,              /* value_type */
+      0xdeadbeef,              /* value_type, assigned further down */
       NULL,                    /* finalize */
       param_gtype_set_default, /* value_set_default */
       param_gtype_validate,    /* value_validate */
       param_gtype_values_cmp,  /* values_cmp */
     };
+    pspec_info.value_type = G_TYPE_GTYPE;
     type = g_param_type_register_static (g_intern_static_string ("GParamGType"), &pspec_info);
     *spec_types++ = type;
     g_assert (type == G_TYPE_PARAM_GTYPE);