[glib: 4/11] Fix redefinition of local variable in glib/tests/sequence.c
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 4/11] Fix redefinition of local variable in glib/tests/sequence.c
- Date: Tue, 22 Feb 2022 08:40:05 +0000 (UTC)
commit fb939a0029c5d1cb65cd817af88ed9df7f724cba
Author: Loic Le Page <llepage fluendo com>
Date: Wed Jan 19 18:53:06 2022 +0100
Fix redefinition of local variable in glib/tests/sequence.c
glib/tests/sequence.c | 11 -----------
1 file changed, 11 deletions(-)
---
diff --git a/glib/tests/sequence.c b/glib/tests/sequence.c
index b52ca38fb..842bc5435 100644
--- a/glib/tests/sequence.c
+++ b/glib/tests/sequence.c
@@ -544,8 +544,6 @@ run_random_tests (gconstpointer d)
break;
case GET_ITER_AT_POS:
{
- int i;
-
g_assert (g_queue_get_length (seq->queue) == (guint) g_sequence_get_length (seq->sequence));
for (i = 0; i < 10; ++i)
@@ -660,7 +658,6 @@ run_random_tests (gconstpointer d)
break;
case INSERT_SORTED:
{
- int i;
dump_info (seq);
g_sequence_sort (seq->sequence, compare_items, NULL);
@@ -683,7 +680,6 @@ run_random_tests (gconstpointer d)
break;
case INSERT_SORTED_ITER:
{
- int i;
dump_info (seq);
g_sequence_sort (seq->sequence, compare_items, NULL);
@@ -710,8 +706,6 @@ run_random_tests (gconstpointer d)
break;
case SORT_CHANGED:
{
- int i;
-
g_sequence_sort (seq->sequence, compare_items, NULL);
g_queue_sort (seq->queue, compare_iters, NULL);
@@ -737,8 +731,6 @@ run_random_tests (gconstpointer d)
break;
case SORT_CHANGED_ITER:
{
- int i;
-
g_sequence_sort (seq->sequence, compare_items, NULL);
g_queue_sort (seq->queue, compare_iters, NULL);
@@ -765,8 +757,6 @@ run_random_tests (gconstpointer d)
break;
case REMOVE:
{
- int i;
-
for (i = 0; i < N_TIMES; ++i)
{
GList *link;
@@ -958,7 +948,6 @@ run_random_tests (gconstpointer d)
if (!g_sequence_iter_is_end (iter))
{
Item *item;
- int i;
check_integrity (seq);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]