Fix redefinition of local variable in glib/tests/sequence.c

This commit is contained in:
Loic Le Page 2022-01-19 18:53:06 +01:00 committed by Loïc Le Page
parent 5804fa1680
commit fb939a0029

View File

@ -544,8 +544,6 @@ run_random_tests (gconstpointer d)
break; break;
case GET_ITER_AT_POS: case GET_ITER_AT_POS:
{ {
int i;
g_assert (g_queue_get_length (seq->queue) == (guint) g_sequence_get_length (seq->sequence)); g_assert (g_queue_get_length (seq->queue) == (guint) g_sequence_get_length (seq->sequence));
for (i = 0; i < 10; ++i) for (i = 0; i < 10; ++i)
@ -660,7 +658,6 @@ run_random_tests (gconstpointer d)
break; break;
case INSERT_SORTED: case INSERT_SORTED:
{ {
int i;
dump_info (seq); dump_info (seq);
g_sequence_sort (seq->sequence, compare_items, NULL); g_sequence_sort (seq->sequence, compare_items, NULL);
@ -683,7 +680,6 @@ run_random_tests (gconstpointer d)
break; break;
case INSERT_SORTED_ITER: case INSERT_SORTED_ITER:
{ {
int i;
dump_info (seq); dump_info (seq);
g_sequence_sort (seq->sequence, compare_items, NULL); g_sequence_sort (seq->sequence, compare_items, NULL);
@ -710,8 +706,6 @@ run_random_tests (gconstpointer d)
break; break;
case SORT_CHANGED: case SORT_CHANGED:
{ {
int i;
g_sequence_sort (seq->sequence, compare_items, NULL); g_sequence_sort (seq->sequence, compare_items, NULL);
g_queue_sort (seq->queue, compare_iters, NULL); g_queue_sort (seq->queue, compare_iters, NULL);
@ -737,8 +731,6 @@ run_random_tests (gconstpointer d)
break; break;
case SORT_CHANGED_ITER: case SORT_CHANGED_ITER:
{ {
int i;
g_sequence_sort (seq->sequence, compare_items, NULL); g_sequence_sort (seq->sequence, compare_items, NULL);
g_queue_sort (seq->queue, compare_iters, NULL); g_queue_sort (seq->queue, compare_iters, NULL);
@ -765,8 +757,6 @@ run_random_tests (gconstpointer d)
break; break;
case REMOVE: case REMOVE:
{ {
int i;
for (i = 0; i < N_TIMES; ++i) for (i = 0; i < N_TIMES; ++i)
{ {
GList *link; GList *link;
@ -958,7 +948,6 @@ run_random_tests (gconstpointer d)
if (!g_sequence_iter_is_end (iter)) if (!g_sequence_iter_is_end (iter))
{ {
Item *item; Item *item;
int i;
check_integrity (seq); check_integrity (seq);