eval.c: clang/"Dead assignment" #10446

This commit is contained in:
Bartosz Miera 2019-07-09 12:06:14 +02:00 committed by Justin M. Keyes
parent 13fbeda0e5
commit 652be3cb00
1 changed files with 4 additions and 5 deletions

View File

@ -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) {
// get signs placed at this line
lnum = (linenr_T)tv_get_number_chk(&di->di_tv, &notanum);
if (notanum) {
lnum = tv_get_lnum(&di->di_tv);
if (lnum <= 0) {
return;
}
lnum = tv_get_lnum(&di->di_tv);
}
if ((di = tv_dict_find(dict, "id", -1)) != NULL) {
// get sign placed with this identifier
@ -20682,11 +20681,11 @@ void ex_echohl(exarg_T *eap)
*/
void ex_execute(exarg_T *eap)
{
char_u *arg = eap->arg;
char_u *arg = eap->arg;
typval_T rettv;
int ret = OK;
garray_T ga;
int save_did_emsg = did_emsg;
int save_did_emsg;
ga_init(&ga, 1, 80);