mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-09 12:25:48 +01:00
CHERI: silence two pedantic warnings
When building for CHERI with additional warning flags, implicitly converting uintptr_t to an integer type that can't store a pointer results in a compiler warnings. Silence two of these by adding explicit casts.
This commit is contained in:
parent
403f7a10dc
commit
2787e59a77
@ -4859,7 +4859,7 @@ g_object_compat_control (gsize what,
|
|||||||
{
|
{
|
||||||
gpointer *pp;
|
gpointer *pp;
|
||||||
case 1: /* floating base type */
|
case 1: /* floating base type */
|
||||||
return G_TYPE_INITIALLY_UNOWNED;
|
return (gsize) G_TYPE_INITIALLY_UNOWNED;
|
||||||
case 2: /* FIXME: remove this once GLib/Gtk+ break ABI again */
|
case 2: /* FIXME: remove this once GLib/Gtk+ break ABI again */
|
||||||
floating_flag_handler = (guint(*)(GObject*,gint)) data;
|
floating_flag_handler = (guint(*)(GObject*,gint)) data;
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -955,7 +955,7 @@ param_spec_pool_hash (gconstpointer key_spec)
|
|||||||
{
|
{
|
||||||
const GParamSpec *key = key_spec;
|
const GParamSpec *key = key_spec;
|
||||||
const gchar *p;
|
const gchar *p;
|
||||||
guint h = key->owner_type;
|
guint h = (guint) key->owner_type;
|
||||||
|
|
||||||
for (p = key->name; *p; p++)
|
for (p = key->name; *p; p++)
|
||||||
h = (h << 5) - h + *p;
|
h = (h << 5) - h + *p;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user