From a0f1f3fd681514e24843862279fcf94da13f7d20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 28 May 2017 08:25:41 +0200 Subject: [PATCH] core: remove unused variable "index" in function eval_hdata_get_value --- src/core/wee-eval.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/wee-eval.c b/src/core/wee-eval.c index 7180c77a5..c6d5b246d 100644 --- a/src/core/wee-eval.c +++ b/src/core/wee-eval.c @@ -148,7 +148,7 @@ eval_hdata_get_value (struct t_hdata *hdata, void *pointer, const char *path) { char *value, *old_value, *var_name, str_value[128], *pos; const char *ptr_value, *hdata_name, *ptr_var_name; - int type, index; + int type; struct t_hashtable *hashtable; value = NULL; @@ -180,7 +180,7 @@ eval_hdata_get_value (struct t_hdata *hdata, void *pointer, const char *path) goto end; /* search type of variable in hdata */ - hdata_get_index_and_name (var_name, &index, &ptr_var_name); + hdata_get_index_and_name (var_name, NULL, &ptr_var_name); type = hdata_get_var_type (hdata, ptr_var_name); if (type < 0) goto end;