mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 01:38:16 +00:00
regexp: pvs/v1071
"void" cast unused return values of getchr(), peekchr().
This commit is contained in:
@@ -2912,7 +2912,7 @@ static int peekchr(void)
|
|||||||
at_start = false; // be able to say "/\*ptr"
|
at_start = false; // be able to say "/\*ptr"
|
||||||
regparse++;
|
regparse++;
|
||||||
after_slash++;
|
after_slash++;
|
||||||
peekchr();
|
(void)peekchr();
|
||||||
regparse--;
|
regparse--;
|
||||||
after_slash--;
|
after_slash--;
|
||||||
curchr = toggle_Magic(curchr);
|
curchr = toggle_Magic(curchr);
|
||||||
|
@@ -1461,10 +1461,10 @@ static int nfa_regatom(void)
|
|||||||
if (nfa_regatom() == FAIL)
|
if (nfa_regatom() == FAIL)
|
||||||
return FAIL;
|
return FAIL;
|
||||||
}
|
}
|
||||||
getchr(); /* get the ] */
|
(void)getchr(); // get the ]
|
||||||
if (n == 0)
|
if (n == 0) {
|
||||||
EMSG2_RET_FAIL(_(e_empty_sb),
|
EMSG2_RET_FAIL(_(e_empty_sb), reg_magic == MAGIC_ALL);
|
||||||
reg_magic == MAGIC_ALL);
|
}
|
||||||
EMIT(NFA_OPT_CHARS);
|
EMIT(NFA_OPT_CHARS);
|
||||||
EMIT(n);
|
EMIT(n);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user