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"
|
||||
regparse++;
|
||||
after_slash++;
|
||||
peekchr();
|
||||
(void)peekchr();
|
||||
regparse--;
|
||||
after_slash--;
|
||||
curchr = toggle_Magic(curchr);
|
||||
|
@@ -1461,10 +1461,10 @@ static int nfa_regatom(void)
|
||||
if (nfa_regatom() == FAIL)
|
||||
return FAIL;
|
||||
}
|
||||
getchr(); /* get the ] */
|
||||
if (n == 0)
|
||||
EMSG2_RET_FAIL(_(e_empty_sb),
|
||||
reg_magic == MAGIC_ALL);
|
||||
(void)getchr(); // get the ]
|
||||
if (n == 0) {
|
||||
EMSG2_RET_FAIL(_(e_empty_sb), reg_magic == MAGIC_ALL);
|
||||
}
|
||||
EMIT(NFA_OPT_CHARS);
|
||||
EMIT(n);
|
||||
|
||||
|
Reference in New Issue
Block a user