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/ex_docmd.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/ex_docmd.c')
-rw-r--r-- | src/nvim/ex_docmd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index afe2660cdf..30e7ecd434 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -10397,8 +10397,6 @@ bool cmd_can_preview(char_u *cmd) Dictionary commands_array(buf_T *buf) { Dictionary rv = ARRAY_DICT_INIT; - Object obj = NIL; - (void)obj; // Avoid "dead assignment" warning. char str[20]; garray_T *gap = (buf == NULL) ? &ucmds : &buf->b_ucmds; @@ -10429,7 +10427,7 @@ Dictionary commands_array(buf_T *buf) PUT(d, "complete_arg", cmd->uc_compl_arg == NULL ? NIL : STRING_OBJ(cstr_to_string((char *)cmd->uc_compl_arg))); - obj = NIL; + Object obj = NIL; if (cmd->uc_argt & COUNT) { if (cmd->uc_def >= 0) { snprintf(str, sizeof(str), "%" PRId64, (int64_t)cmd->uc_def); |