[gom] tests: Remove shadowed declarations [-Wshadow]
- From: Mathieu Bridon <mbridon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gom] tests: Remove shadowed declarations [-Wshadow]
- Date: Mon, 8 Dec 2014 18:32:11 +0000 (UTC)
commit aa22569dd294423cdd6792906f0bcec57a12dcc1
Author: Mathieu Bridon <bochecha daitauha fr>
Date: Tue Nov 25 19:37:28 2014 +0100
tests: Remove shadowed declarations [-Wshadow]
https://bugzilla.gnome.org/show_bug.cgi?id=741261
tests/test-gom-stress.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/tests/test-gom-stress.c b/tests/test-gom-stress.c
index de2cd51..49a8f5b 100644
--- a/tests/test-gom-stress.c
+++ b/tests/test-gom-stress.c
@@ -158,7 +158,7 @@ stress (void)
GValue value = { 0, };
GomFilter *filter;
guint i;
- char *s1, *s2, *name, *surname;
+ char *s1, *s2, *name, *first_name, *surname;
ItemResource *it;
adapter = gom_adapter_new();
@@ -176,7 +176,6 @@ stress (void)
for (i = 1; i <= NUM_RECORDS; i++) {
ItemResource *item;
- char *first_name, *surname;
first_name = g_strdup_printf("%s #%d", "First name", i);
surname = g_strdup_printf("%s #%d", "Surname", i);
@@ -238,7 +237,7 @@ stress2 (void)
GValue value = { 0, };
GomFilter *filter;
guint i;
- char *s1, *s2, *name, *surname;
+ char *s1, *s2, *name, *first_name, *surname;
ItemResource *it;
GomResourceGroup *group;
@@ -259,7 +258,6 @@ stress2 (void)
for (i = 1; i <= NUM_RECORDS; i++) {
ItemResource *item;
- char *first_name, *surname;
first_name = g_strdup_printf("%s #%d", "First name", i);
surname = g_strdup_printf("%s #%d", "Surname", i);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]