aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2022-09-28 10:53:44 +0200
committerGitHub <noreply@github.com>2022-09-28 10:53:44 +0200
commitd7358118aa57ec636ef6f84c6ac96f26d8bed32c (patch)
tree22c160c38d884ce267fb9c06550dbc0d8eb9e0b5 /src/nvim/eval
parente6c214033a4fadf60faf99e95f8e9787e3c5e630 (diff)
downloadrneovim-d7358118aa57ec636ef6f84c6ac96f26d8bed32c.tar.gz
rneovim-d7358118aa57ec636ef6f84c6ac96f26d8bed32c.tar.bz2
rneovim-d7358118aa57ec636ef6f84c6ac96f26d8bed32c.zip
fix: compiler warnings from clang 15 (#20321)
Add -Wno-strict-prototypes flag to external dependencies to suppress cjson warnings. These needs to be fixed upstream first.
Diffstat (limited to 'src/nvim/eval')
-rw-r--r--src/nvim/eval/typval.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/nvim/eval/typval.c b/src/nvim/eval/typval.c
index 5639414dad..961c963170 100644
--- a/src/nvim/eval/typval.c
+++ b/src/nvim/eval/typval.c
@@ -1249,14 +1249,12 @@ static void do_sort_uniq(typval_T *argvars, typval_T *rettv, bool sort)
item_compare_func_ptr = item_compare_keeping_zero;
}
- int idx = 0;
for (listitem_T *li = TV_LIST_ITEM_NEXT(l, tv_list_first(l))
; li != NULL;) {
listitem_T *const prev_li = TV_LIST_ITEM_PREV(l, li);
if (item_compare_func_ptr(&prev_li, &li) == 0) {
li = tv_list_item_remove(l, li);
} else {
- idx++;
li = TV_LIST_ITEM_NEXT(l, li);
}
if (info.item_compare_func_err) { // -V547