diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-08-25 13:41:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-25 13:41:17 +0800 |
commit | 170617c7a2183f9d5df84bfc89317be44ec9ac2e (patch) | |
tree | 82c16936e0dc10509e2e7b1ab799511e44ace410 /src/nvim/quickfix.c | |
parent | e4e0e8ce6f282ad891d3e9b7cd66961d23e7cba3 (diff) | |
parent | 6584f3a2b69b901900b9f267d62e06efbc15fec1 (diff) | |
download | rneovim-170617c7a2183f9d5df84bfc89317be44ec9ac2e.tar.gz rneovim-170617c7a2183f9d5df84bfc89317be44ec9ac2e.tar.bz2 rneovim-170617c7a2183f9d5df84bfc89317be44ec9ac2e.zip |
Merge pull request #19939 from zeertzjq/vim-8.2.4289
vim-patch: compiler warnings
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r-- | src/nvim/quickfix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 5925f249a2..4d6f7a0f36 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -5140,6 +5140,7 @@ static bool vgr_match_buflines(qf_list_T *qfl, char *fname, buf_T *buf, char *sp FUNC_ATTR_NONNULL_ARG(1, 3, 4, 5, 6) { bool found_match = false; + const size_t pat_len = STRLEN(spat); for (linenr_T lnum = 1; lnum <= buf->b_ml.ml_line_count && *tomatch > 0; lnum++) { colnr_T col = 0; @@ -5181,7 +5182,6 @@ static bool vgr_match_buflines(qf_list_T *qfl, char *fname, buf_T *buf, char *sp } } } else { - const size_t pat_len = STRLEN(spat); char *const str = (char *)ml_get_buf(buf, lnum, false); int score; uint32_t matches[MAX_FUZZY_MATCHES]; |