summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2019-06-08 19:20:26 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2019-06-08 19:22:24 -0700
commit85f2a20e7535a5f8dcdeb805f3e30f387d45baf3 (patch)
tree64b61794bbdd64321a023c4ef95cb65bc1dfb0d6
parent917269949545cf1ab1e0068cc2ba7c1f9a775012 (diff)
Fix -Wshadow warnings
viewres.c: In function ‘select_callback’: viewres.c:620:18: warning: declaration of ‘node’ shadows a previous local [-Wshadow] XmuWidgetNode *node = selected_list.elements[i]; ^~~~ viewres.c:593:20: note: shadowed declaration is here XmuWidgetNode *node; ^~~~ viewres.c:658:18: warning: declaration of ‘node’ shadows a previous local [-Wshadow] XmuWidgetNode *node = selected_list.elements[i]; ^~~~ viewres.c:593:20: note: shadowed declaration is here XmuWidgetNode *node; ^~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--viewres.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/viewres.c b/viewres.c
index 74e402e..8200f81 100644
--- a/viewres.c
+++ b/viewres.c
@@ -617,9 +617,9 @@ select_callback (
add_to_selected_list (node->superclass, TRUE);
} else {
for (i = 0; i < nselected; i++) {
- XmuWidgetNode *node = selected_list.elements[i];
- if (node->superclass)
- add_to_selected_list (node->superclass, TRUE);
+ XmuWidgetNode *nodeI = selected_list.elements[i];
+ if (nodeI->superclass)
+ add_to_selected_list (nodeI->superclass, TRUE);
}
}
break;
@@ -655,11 +655,11 @@ select_callback (
}
} else {
for (i = 0; i < nselected; i++) {
- XmuWidgetNode *node = selected_list.elements[i];
+ XmuWidgetNode *nodeI = selected_list.elements[i];
- add_to_selected_list (node, TRUE);
- for (node = node->children; node; node = node->siblings) {
- add_to_selected_list (node, TRUE);
+ add_to_selected_list (nodeI, TRUE);
+ for (nodeI = nodeI->children; nodeI; nodeI = nodeI->siblings) {
+ add_to_selected_list (nodeI, TRUE);
}
}
}