diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2020-05-31 08:59:25 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2020-05-31 12:42:33 +0200 |
commit | d8a8fb3423499851bf06aac2302112944a276f97 (patch) | |
tree | 5450e799321f68e2ea5fbd037b46dc1c16628439 /lib/gl_anytreehash_list2.h | |
parent | d2ae3a4ac629609fc29c16c53757767fd2963b88 (diff) | |
download | gnulib-d8a8fb3423499851bf06aac2302112944a276f97.tar.gz |
list: fix GCC warnings
* lib/gl_anytree_list2.h (gl_tree_iterator_free)
(gl_tree_next_node, gl_tree_node_nx_set_value)
(gl_tree_previous_node, gl_tree_next_node):
Mark unused arguments.
* lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
* lib/gl_anylinked_list2.h (gl_linked_node_value)
(gl_linked_node_nx_set_value, gl_linked_iterator_free): Likewise.
* lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Avoid using
the same variable name in nested scopes.
Diffstat (limited to 'lib/gl_anytreehash_list2.h')
-rw-r--r-- | lib/gl_anytreehash_list2.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gl_anytreehash_list2.h b/lib/gl_anytreehash_list2.h index 69e6776b09..26e52bf389 100644 --- a/lib/gl_anytreehash_list2.h +++ b/lib/gl_anytreehash_list2.h @@ -61,13 +61,13 @@ gl_tree_search_from_to (gl_list_t list, size_t start_index, size_t end_index, { /* We have to return only the one at the minimal position >= start_index. */ - const void *elt; + const void *nodes_elt; if (gl_oset_search_atleast (nodes, compare_position_threshold, (void *)(uintptr_t)start_index, - &elt)) + &nodes_elt)) { - node = (gl_list_node_t) elt; + node = (gl_list_node_t) nodes_elt; if (end_index == list->root->branch_size || node_position (node) < end_index) return node; |