Mercurial > vim
diff src/vim9script.c @ 27114:98a01021e465 v8.2.4086
patch 8.2.4086: "cctx" argument of find_func_even_dead() is unused
Commit: https://github.com/vim/vim/commit/d9d2fd0aa33dd9f7460d6f1e403505a60f7ce2fc
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 13 21:15:21 2022 +0000
patch 8.2.4086: "cctx" argument of find_func_even_dead() is unused
Problem: "cctx" argument of find_func_even_dead() is unused.
Solution: Remove the argument.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 13 Jan 2022 22:30:05 +0100 |
parents | 70ad00a80185 |
children | 5b267700e6ab |
line wrap: on
line diff
--- a/src/vim9script.c +++ b/src/vim9script.c @@ -132,7 +132,7 @@ ex_vim9script(exarg_T *eap UNUSED) } si->sn_state = SN_STATE_HAD_COMMAND; - // Store the prefix with the script. It isused to find exported functions. + // Store the prefix with the script, it is used to find exported functions. if (si->sn_autoload_prefix == NULL) si->sn_autoload_prefix = get_autoload_prefix(si); @@ -712,7 +712,7 @@ find_exported( funcname[2] = (int)KE_SNR; sprintf((char *)funcname + 3, "%ld_%s", (long)sid, name); } - *ufunc = find_func(funcname, FALSE, NULL); + *ufunc = find_func(funcname, FALSE); if (funcname != buffer) vim_free(funcname);