Mercurial > vim
diff src/edit.c @ 3263:320cc46d0eb0 v7.3.400
updated for version 7.3.400
Problem: Compiler warnings for shadowed variables.
Solution: Remove or rename the variables.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 10 Jan 2012 22:26:17 +0100 |
parents | e958eeffa0a7 |
children | 8b928bc814a8 |
line wrap: on
line diff
--- a/src/edit.c +++ b/src/edit.c @@ -4003,24 +4003,24 @@ ins_compl_add_list(list) ins_compl_add_dict(dict) dict_T *dict; { - dictitem_T *refresh; - dictitem_T *words; + dictitem_T *di_refresh; + dictitem_T *di_words; /* Check for optional "refresh" item. */ compl_opt_refresh_always = FALSE; - refresh = dict_find(dict, (char_u *)"refresh", 7); - if (refresh != NULL && refresh->di_tv.v_type == VAR_STRING) - { - char_u *v = refresh->di_tv.vval.v_string; + di_refresh = dict_find(dict, (char_u *)"refresh", 7); + if (di_refresh != NULL && di_refresh->di_tv.v_type == VAR_STRING) + { + char_u *v = di_refresh->di_tv.vval.v_string; if (v != NULL && STRCMP(v, (char_u *)"always") == 0) compl_opt_refresh_always = TRUE; } /* Add completions from a "words" list. */ - words = dict_find(dict, (char_u *)"words", 5); - if (words != NULL && words->di_tv.v_type == VAR_LIST) - ins_compl_add_list(words->di_tv.vval.v_list); + di_words = dict_find(dict, (char_u *)"words", 5); + if (di_words != NULL && di_words->di_tv.v_type == VAR_LIST) + ins_compl_add_list(di_words->di_tv.vval.v_list); } /*