~mdw
/
sgt
/
library
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Remove an unused variable spotted by Ubuntu 12.04's gcc.
[sgt/library]
/
btree.c
diff --git
a/btree.c
b/btree.c
index
bb6f907
..
7ad6bf3
100644
(file)
--- a/
btree.c
+++ b/
btree.c
@@
-989,7
+989,6
@@
bt_element_t bt_findrelpos(btree *bt, bt_element_t element, cmpfn_t cmp,
int child, is_elt;
bt_element_t gotit;
int pos = 0;
- int count;
if (!cmp) cmp = bt->cmp;
@@
-1011,7
+1010,6
@@
bt_element_t bt_findrelpos(btree *bt, bt_element_t element, cmpfn_t cmp,
n = bt_read_lock_root(bt);
if (!n)
return NULL;
- count = bt_node_count(bt, n);
while (n) {
child = bt_lookup_cmp(bt, n, element, cmp, &is_elt);
if (is_elt) {