mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-01 21:33:09 +02:00
Merge branch 'fix_extra_warnings' into 'master'
Fix more warnings See merge request GNOME/glib!1765
This commit is contained in:
commit
77361ef45e
@ -749,7 +749,7 @@ g_object_class_install_properties (GObjectClass *oclass,
|
|||||||
GParamSpec **pspecs)
|
GParamSpec **pspecs)
|
||||||
{
|
{
|
||||||
GType oclass_type, parent_type;
|
GType oclass_type, parent_type;
|
||||||
gint i;
|
guint i;
|
||||||
|
|
||||||
g_return_if_fail (G_IS_OBJECT_CLASS (oclass));
|
g_return_if_fail (G_IS_OBJECT_CLASS (oclass));
|
||||||
g_return_if_fail (n_pspecs > 1);
|
g_return_if_fail (n_pspecs > 1);
|
||||||
@ -1798,7 +1798,7 @@ g_object_new_with_custom_constructor (GObjectClass *class,
|
|||||||
gint n_cparams;
|
gint n_cparams;
|
||||||
gint cvals_used;
|
gint cvals_used;
|
||||||
GSList *node;
|
GSList *node;
|
||||||
gint i;
|
guint i;
|
||||||
|
|
||||||
/* If we have ->constructed() then we have to do a lot more work.
|
/* If we have ->constructed() then we have to do a lot more work.
|
||||||
* It's possible that this is a singleton and it's also possible
|
* It's possible that this is a singleton and it's also possible
|
||||||
@ -1828,7 +1828,7 @@ g_object_new_with_custom_constructor (GObjectClass *class,
|
|||||||
{
|
{
|
||||||
GParamSpec *pspec;
|
GParamSpec *pspec;
|
||||||
GValue *value;
|
GValue *value;
|
||||||
gint j;
|
guint j;
|
||||||
|
|
||||||
pspec = node->data;
|
pspec = node->data;
|
||||||
value = NULL; /* to silence gcc... */
|
value = NULL; /* to silence gcc... */
|
||||||
@ -1954,7 +1954,7 @@ g_object_new_internal (GObjectClass *class,
|
|||||||
{
|
{
|
||||||
const GValue *value;
|
const GValue *value;
|
||||||
GParamSpec *pspec;
|
GParamSpec *pspec;
|
||||||
gint j;
|
guint j;
|
||||||
|
|
||||||
pspec = node->data;
|
pspec = node->data;
|
||||||
value = NULL; /* to silence gcc... */
|
value = NULL; /* to silence gcc... */
|
||||||
@ -1980,7 +1980,7 @@ g_object_new_internal (GObjectClass *class,
|
|||||||
|
|
||||||
if (nqueue)
|
if (nqueue)
|
||||||
{
|
{
|
||||||
gint i;
|
guint i;
|
||||||
|
|
||||||
/* Set remaining properties. The construct properties will
|
/* Set remaining properties. The construct properties will
|
||||||
* already have been taken, so set only the non-construct
|
* already have been taken, so set only the non-construct
|
||||||
|
@ -579,7 +579,7 @@ lookup_iface_entry_I (IFaceEntries *entries,
|
|||||||
guint8 *offsets;
|
guint8 *offsets;
|
||||||
guint offset_index;
|
guint offset_index;
|
||||||
IFaceEntry *check;
|
IFaceEntry *check;
|
||||||
int index;
|
gsize index;
|
||||||
IFaceEntry *entry;
|
IFaceEntry *entry;
|
||||||
|
|
||||||
if (entries == NULL)
|
if (entries == NULL)
|
||||||
@ -1369,7 +1369,7 @@ type_node_add_iface_entry_W (TypeNode *node,
|
|||||||
IFaceEntry *entry;
|
IFaceEntry *entry;
|
||||||
TypeNode *iface_node;
|
TypeNode *iface_node;
|
||||||
guint i, j;
|
guint i, j;
|
||||||
int num_entries;
|
guint num_entries;
|
||||||
|
|
||||||
g_assert (node->is_instantiatable);
|
g_assert (node->is_instantiatable);
|
||||||
|
|
||||||
@ -1608,7 +1608,7 @@ g_type_interface_add_prerequisite (GType interface_type,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < prerequisite_node->n_supers + 1; i++)
|
for (i = 0; i < prerequisite_node->n_supers + 1u; i++)
|
||||||
type_iface_add_prerequisite_W (iface, lookup_type_node_I (prerequisite_node->supers[i]));
|
type_iface_add_prerequisite_W (iface, lookup_type_node_I (prerequisite_node->supers[i]));
|
||||||
G_WRITE_UNLOCK (&type_rw_lock);
|
G_WRITE_UNLOCK (&type_rw_lock);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user