aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2023-10-06 17:43:23 +0200
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2023-10-09 16:52:28 +0200
commit6c0f900699293937435591412e4285e313703bc7 (patch)
tree8de906c4a1ecd298587144c0f01e812d3720dd13 /src/nvim/eval.c
parent55be4a4e26eafd06704a465ce85cf9526115e0f1 (diff)
downloadrneovim-6c0f900699293937435591412e4285e313703bc7.tar.gz
rneovim-6c0f900699293937435591412e4285e313703bc7.tar.bz2
rneovim-6c0f900699293937435591412e4285e313703bc7.zip
ci: enable clang-analyzer warnings
This adds the checks in https://neovim.io/doc/reports/clang/ when using clang-tidy. The strategy is to enable all clang-analyzer checks, and disable only the checks for the warnings that exist currently. This allows us to eliminate each warning type without blocking ongoing work, but also without adding bugs for already eliminated warnings. The plan is to eventually eliminate https://neovim.io/doc/reports/clang/ by completely integrating it into the clang-tidy check. Also add make and cmake targets `clang-analyzer` to run this check.
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index b50d7a509f..c9a29b9913 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -5641,7 +5641,7 @@ void get_user_input(const typval_T *const argvars, typval_T *const rettv, const
rettv->v_type = VAR_STRING;
rettv->vval.v_string = NULL;
- const char *prompt = "";
+ const char *prompt;
const char *defstr = "";
typval_T *cancelreturn = NULL;
typval_T cancelreturn_strarg2 = TV_INITIAL_VALUE;