gparam.h gvalue.h gparam.c Shut up Sun's picky compiler.

2000-07-19  Tor Lillqvist  <tml@iki.fi>

* gparam.h
* gvalue.h
* gparam.c
* gtype.c: Shut up Sun's picky compiler.
This commit is contained in:
Tor Lillqvist
2000-07-19 16:02:43 +00:00
committed by Tor Lillqvist
parent cb931f4980
commit 5e4c5611ab
5 changed files with 14 additions and 7 deletions

View File

@@ -185,7 +185,7 @@ g_param_spec_set_qdata_full (GParamSpec *pspec,
g_return_if_fail (G_IS_PARAM_SPEC (pspec));
g_return_if_fail (quark > 0);
g_datalist_id_set_data_full (&pspec->qdata, quark, data, data ? destroy : NULL);
g_datalist_id_set_data_full (&pspec->qdata, quark, data, data ? destroy : (GDestroyNotify) NULL);
}
gpointer
@@ -331,10 +331,10 @@ g_param_spec_hash_table_remove (GHashTable *hash_table,
g_return_if_fail (hash_table != NULL);
g_return_if_fail (G_IS_PARAM_SPEC (pspec));
g_assert (g_param_spec_hash_table_lookup (hash_table, pspec->name, pspec->owner_type, FALSE, NULL) != NULL); // FIXME: paranoid
g_assert (g_param_spec_hash_table_lookup (hash_table, pspec->name, pspec->owner_type, FALSE, NULL) != NULL); /* FIXME: paranoid */
g_hash_table_remove (hash_table, pspec);
g_assert (g_param_spec_hash_table_lookup (hash_table, pspec->name, pspec->owner_type, FALSE, NULL) == NULL); // FIXME: paranoid
g_assert (g_param_spec_hash_table_lookup (hash_table, pspec->name, pspec->owner_type, FALSE, NULL) == NULL); /* FIXME: paranoid */
pspec->owner_type = 0;
}