aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/marktree.c
diff options
context:
space:
mode:
authorHirokazu Hata <h.hata.ai.t@gmail.com>2020-02-19 13:54:19 +0900
committerGitHub <noreply@github.com>2020-02-18 20:54:19 -0800
commit521b79c0f85625f99ff626935484a1225360f820 (patch)
tree56d6ad2f1cf09bd5cb1e8fff60e49d0839c43b28 /src/nvim/marktree.c
parentce15977d708886a3d55fa21127abc7145dc7aaf8 (diff)
downloadrneovim-521b79c0f85625f99ff626935484a1225360f820.tar.gz
rneovim-521b79c0f85625f99ff626935484a1225360f820.tar.bz2
rneovim-521b79c0f85625f99ff626935484a1225360f820.zip
clang/scan-build: fix dead stores #11900
Diffstat (limited to 'src/nvim/marktree.c')
-rw-r--r--src/nvim/marktree.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/marktree.c b/src/nvim/marktree.c
index 52e602cd94..25b07366d7 100644
--- a/src/nvim/marktree.c
+++ b/src/nvim/marktree.c
@@ -197,7 +197,7 @@ static inline void split_node(MarkTree *b, mtnode_t *x, const int i)
// x must not be a full node (even if there might be internal space)
static inline void marktree_putp_aux(MarkTree *b, mtnode_t *x, mtkey_t k)
{
- int i = x->n - 1;
+ int i;
if (x->level == 0) {
i = marktree_getp_aux(x, k, 0);
if (i != x->n - 1) {
@@ -905,7 +905,6 @@ continue_same_node:
refkey(b, itr->node, itr->i);
refkey(b, enditr->node, enditr->i);
} else {
- past_right = true;
break;
}
}