mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
eval.c: clang/"Dead assignment" #10446
This commit is contained in:
parent
13fbeda0e5
commit
652be3cb00
@ -15850,11 +15850,10 @@ static void f_sign_getplaced(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
|||||||
}
|
}
|
||||||
if ((di = tv_dict_find(dict, "lnum", -1)) != NULL) {
|
if ((di = tv_dict_find(dict, "lnum", -1)) != NULL) {
|
||||||
// get signs placed at this line
|
// get signs placed at this line
|
||||||
lnum = (linenr_T)tv_get_number_chk(&di->di_tv, ¬anum);
|
lnum = tv_get_lnum(&di->di_tv);
|
||||||
if (notanum) {
|
if (lnum <= 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
lnum = tv_get_lnum(&di->di_tv);
|
|
||||||
}
|
}
|
||||||
if ((di = tv_dict_find(dict, "id", -1)) != NULL) {
|
if ((di = tv_dict_find(dict, "id", -1)) != NULL) {
|
||||||
// get sign placed with this identifier
|
// get sign placed with this identifier
|
||||||
@ -20682,11 +20681,11 @@ void ex_echohl(exarg_T *eap)
|
|||||||
*/
|
*/
|
||||||
void ex_execute(exarg_T *eap)
|
void ex_execute(exarg_T *eap)
|
||||||
{
|
{
|
||||||
char_u *arg = eap->arg;
|
char_u *arg = eap->arg;
|
||||||
typval_T rettv;
|
typval_T rettv;
|
||||||
int ret = OK;
|
int ret = OK;
|
||||||
garray_T ga;
|
garray_T ga;
|
||||||
int save_did_emsg = did_emsg;
|
int save_did_emsg;
|
||||||
|
|
||||||
ga_init(&ga, 1, 80);
|
ga_init(&ga, 1, 80);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user