mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 19:06:31 +00:00
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.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user