mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
ex_getln: Avoid GCC “unused variable” warning from QB
17:25:45,363 WARN - /home/quickbuild/buildagent/workspace/root/neovim/pull-requests-automated/src/nvim/ex_getln.c: In function ‘color_cmdline’: 17:25:45,363 WARN - /home/quickbuild/buildagent/workspace/root/neovim/pull-requests-automated/src/nvim/ex_getln.c:2335:8: error: variable ‘printed_errmsg’ set but not used [-Werror=unused-but-set-variable] 17:25:45,363 WARN - bool printed_errmsg = false; 17:25:45,363 WARN - ^ 17:25:45,399 WARN - cc1: all warnings being treated as errors
This commit is contained in:
parent
25c6ac1af6
commit
740dcaef0d
@ -2523,6 +2523,7 @@ color_cmdline_error:
|
|||||||
api_clear_error(&err);
|
api_clear_error(&err);
|
||||||
}
|
}
|
||||||
assert(printed_errmsg);
|
assert(printed_errmsg);
|
||||||
|
(void)printed_errmsg;
|
||||||
|
|
||||||
prev_prompt_errors++;
|
prev_prompt_errors++;
|
||||||
kv_size(ccline_colors) = 0;
|
kv_size(ccline_colors) = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user