mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-14 05:16:18 +01:00
tests/sequence: Ensure iterator is set and actually checked
Clang was complaining: ../glib/tests/sequence.c:125:7: warning: variable 'i' set but not used int i; ^ 1 warning generated.
This commit is contained in:
parent
8fe2e4d364
commit
8341a1cf06
@ -122,7 +122,7 @@ check_integrity (SequenceInfo *info)
|
||||
{
|
||||
GList *list;
|
||||
GSequenceIter *iter;
|
||||
int i;
|
||||
unsigned int i;
|
||||
|
||||
g_sequence_check (info->sequence);
|
||||
|
||||
@ -149,6 +149,7 @@ check_integrity (SequenceInfo *info)
|
||||
i++;
|
||||
}
|
||||
|
||||
g_assert_cmpuint (i, ==, info->n_items);
|
||||
g_assert (info->n_items == g_queue_get_length (info->queue));
|
||||
g_assert ((guint) g_sequence_get_length (info->sequence) == info->n_items);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user