Problem: Warnings for missing values in switch.
Solution: Change switch to if-else or add values.
}
/* As we are not using copy_tv which increments reference count we must
* do it ourself. */
- switch(tv->v_type)
- {
- case VAR_DICT: ++tv->vval.v_dict->dv_refcount; break;
- case VAR_LIST: ++tv->vval.v_list->lv_refcount; break;
- }
+ if (tv->v_type == VAR_DICT)
+ ++tv->vval.v_dict->dv_refcount;
+ else if (tv->v_type == VAR_LIST)
+ ++tv->vval.v_list->lv_refcount;
}
else
{
rettv->v_type = VAR_NUMBER;
rettv->vval.v_number = 0;
break;
+ case VAR_NUMBER:
+ case VAR_STRING:
+ case VAR_FLOAT:
+ case VAR_JOB:
+ case VAR_SPECIAL:
+ break;
}
}
rettv->v_type = VAR_NUMBER;
rettv->vval.v_number = 0;
break;
+ case VAR_NUMBER:
+ case VAR_STRING:
+ case VAR_FLOAT:
+ case VAR_JOB:
+ case VAR_SPECIAL:
+ break;
}
}
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1270,
/**/
1269,
/**/