mirror of
https://github.com/neovim/neovim.git
synced 2025-11-11 21:08:53 +00:00
Fix warnings: option.c: do_set(): Dead assignment: HI.
Problem : Dead assignment @ 2566.
Diagnostic : Harmless issue.
Rationale : `nextchar` is used as a lookahead buffer for the character
next to the currently examined token. Sometimes it also
saves that char while original string is modified (original
position of nextchar is nullified for the string to
terminate there). In summary, it's an auxiliary variable
with no particular complex meaning. Safe to remove if not
used.
Resolution : Remove dead assignment.
This commit is contained in:
@@ -2563,7 +2563,6 @@ do_set (
|
|||||||
/* find end of name */
|
/* find end of name */
|
||||||
key = 0;
|
key = 0;
|
||||||
if (*arg == '<') {
|
if (*arg == '<') {
|
||||||
nextchar = 0;
|
|
||||||
opt_idx = -1;
|
opt_idx = -1;
|
||||||
/* look out for <t_>;> */
|
/* look out for <t_>;> */
|
||||||
if (arg[1] == 't' && arg[2] == '_' && arg[3] && arg[4])
|
if (arg[1] == 't' && arg[2] == '_' && arg[3] && arg[4])
|
||||||
|
|||||||
Reference in New Issue
Block a user