mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
clang/scan-build: fix dead stores #11900
This commit is contained in:
parent
ce15977d70
commit
521b79c0f8
@ -574,10 +574,8 @@ static int insert_check(VimState *state)
|
|||||||
foldCheckClose();
|
foldCheckClose();
|
||||||
}
|
}
|
||||||
|
|
||||||
int cmdchar_todo = s->cmdchar;
|
|
||||||
if (bt_prompt(curbuf)) {
|
if (bt_prompt(curbuf)) {
|
||||||
init_prompt(cmdchar_todo);
|
init_prompt(s->cmdchar);
|
||||||
cmdchar_todo = NUL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we inserted a character at the last position of the last line in the
|
// If we inserted a character at the last position of the last line in the
|
||||||
|
@ -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)
|
// 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)
|
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) {
|
if (x->level == 0) {
|
||||||
i = marktree_getp_aux(x, k, 0);
|
i = marktree_getp_aux(x, k, 0);
|
||||||
if (i != x->n - 1) {
|
if (i != x->n - 1) {
|
||||||
@ -905,7 +905,6 @@ continue_same_node:
|
|||||||
refkey(b, itr->node, itr->i);
|
refkey(b, itr->node, itr->i);
|
||||||
refkey(b, enditr->node, enditr->i);
|
refkey(b, enditr->node, enditr->i);
|
||||||
} else {
|
} else {
|
||||||
past_right = true;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user