diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2020-01-08 22:13:46 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-08 22:13:46 -0800 |
commit | b6276f5aee835a6d44b2957027c5399c976c6647 (patch) | |
tree | c8044004ed00a7747aa6cac94ce763300f6c7c41 /src/nvim/ex_docmd.c | |
parent | 831fa45ad84e2f41730db3350289e660006139d6 (diff) | |
parent | 45759e44f9cff9deef1538933fad3e42f94d5930 (diff) | |
download | rneovim-b6276f5aee835a6d44b2957027c5399c976c6647.tar.gz rneovim-b6276f5aee835a6d44b2957027c5399c976c6647.tar.bz2 rneovim-b6276f5aee835a6d44b2957027c5399c976c6647.zip |
Merge #11691 from janlazo/vim-8.2.0099
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); |