Merge branch 'fix_more_warnings' into 'master'

Fix more warnings

See merge request GNOME/glib!1818
This commit is contained in:
Sebastian Dröge 2020-12-17 13:25:26 +00:00
commit bb3f366101
3 changed files with 5 additions and 5 deletions

View File

@ -631,7 +631,7 @@ scan_for_newline (GDataInputStream *stream,
GDataInputStreamPrivate *priv;
const char *buffer;
gsize start, end, peeked;
int i;
gsize i;
gssize found_pos;
int newline_len;
gsize available, checked;
@ -861,7 +861,7 @@ scan_for_chars (GDataInputStream *stream,
GBufferedInputStream *bstream;
const char *buffer;
gsize start, end, peeked;
int i;
gsize i;
gsize available, checked;
const char *stop_char;
const char *stop_end;

View File

@ -318,7 +318,7 @@ static void
g_file_info_finalize (GObject *object)
{
GFileInfo *info;
int i;
guint i;
GFileAttribute *attrs;
info = G_FILE_INFO (object);

View File

@ -269,7 +269,7 @@ g_list_store_insert (GListStore *store,
g_return_if_fail (G_IS_LIST_STORE (store));
g_return_if_fail (g_type_is_a (G_OBJECT_TYPE (item), store->item_type));
g_return_if_fail (position <= g_sequence_get_length (store->items));
g_return_if_fail (position <= (guint) g_sequence_get_length (store->items));
it = g_sequence_get_iter_at_pos (store->items, position);
g_sequence_insert_before (it, g_object_ref (item));
@ -477,7 +477,7 @@ g_list_store_splice (GListStore *store,
if (n_additions)
{
gint i;
guint i;
for (i = 0; i < n_additions; i++)
{