diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-01-08 01:08:55 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-01-08 01:08:55 -0500 |
commit | 45759e44f9cff9deef1538933fad3e42f94d5930 (patch) | |
tree | 60be89d40786ca00ec898ab09a7238b01da3412e /src/nvim/normal.c | |
parent | 3d6cca5a9d7cc9c13af631d2c6d652096203ce13 (diff) | |
download | rneovim-45759e44f9cff9deef1538933fad3e42f94d5930.tar.gz rneovim-45759e44f9cff9deef1538933fad3e42f94d5930.tar.bz2 rneovim-45759e44f9cff9deef1538933fad3e42f94d5930.zip |
Remove (void) hacks, Mark unused attrs
Diffstat (limited to 'src/nvim/normal.c')
-rw-r--r-- | src/nvim/normal.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c index d0b9fd4589..3aff3cef84 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -3760,7 +3760,6 @@ find_decl ( bool retval = true; bool incll; int searchflags = flags_arg; - bool valid; pat = xmalloc(len + 7); @@ -3795,8 +3794,6 @@ find_decl ( /* Search forward for the identifier, ignore comment lines. */ clearpos(&found_pos); for (;; ) { - valid = false; - (void)valid; // Avoid "dead assignment" warning. t = searchit(curwin, curbuf, &curwin->w_cursor, NULL, FORWARD, pat, 1L, searchflags, RE_LAST, NULL); if (curwin->w_cursor.lnum >= old_pos.lnum) { @@ -3831,7 +3828,7 @@ find_decl ( curwin->w_cursor.col = 0; continue; } - valid = is_ident(get_cursor_line_ptr(), curwin->w_cursor.col); + bool valid = is_ident(get_cursor_line_ptr(), curwin->w_cursor.col); // If the current position is not a valid identifier and a previous match is // present, favor that one instead. |