mirror of
https://github.com/neovim/neovim.git
synced 2025-09-24 20:18:32 +00:00
clang/"dead assignments" #10620
Also revert possibly-wrong change in f_sign_getplaced() from
652be3cb00
.
This commit is contained in:

committed by
Justin M. Keyes

parent
7cc2b723d4
commit
16727dcf1e
@@ -16032,10 +16032,12 @@ static void f_sign_getplaced(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
}
|
||||
if ((di = tv_dict_find(dict, "lnum", -1)) != NULL) {
|
||||
// get signs placed at this line
|
||||
lnum = tv_get_lnum(&di->di_tv);
|
||||
if (lnum <= 0) {
|
||||
lnum = (linenr_T)tv_get_number_chk(&di->di_tv, ¬anum);
|
||||
if (notanum) {
|
||||
return;
|
||||
}
|
||||
(void)lnum;
|
||||
lnum = tv_get_lnum(&di->di_tv);
|
||||
}
|
||||
if ((di = tv_dict_find(dict, "id", -1)) != NULL) {
|
||||
// get sign placed with this identifier
|
||||
@@ -16164,6 +16166,7 @@ static void f_sign_place(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
if (notanum) {
|
||||
goto cleanup;
|
||||
}
|
||||
(void)lnum;
|
||||
lnum = tv_get_lnum(&di->di_tv);
|
||||
}
|
||||
if ((di = tv_dict_find(dict, "priority", -1)) != NULL) {
|
||||
|
Reference in New Issue
Block a user