Mercurial > vim
comparison src/eval.c @ 4819:8c4324e6f477 v7.3.1156
updated for version 7.3.1156
Problem: Compiler warnings. (dv1445)
Solution: Initialize variables, even when the value isn't really used.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sun, 09 Jun 2013 20:51:00 +0200 |
parents | 66803af09906 |
children | 208a6c04e6b8 |
comparison
equal
deleted
inserted
replaced
4818:aa1849f38c65 | 4819:8c4324e6f477 |
---|---|
2732 if (len != -1) | 2732 if (len != -1) |
2733 { | 2733 { |
2734 prevval = key[len]; | 2734 prevval = key[len]; |
2735 key[len] = NUL; | 2735 key[len] = NUL; |
2736 } | 2736 } |
2737 else | |
2738 prevval = 0; /* avoid compiler warning */ | |
2737 wrong = (lp->ll_dict->dv_scope == VAR_DEF_SCOPE | 2739 wrong = (lp->ll_dict->dv_scope == VAR_DEF_SCOPE |
2738 && rettv->v_type == VAR_FUNC | 2740 && rettv->v_type == VAR_FUNC |
2739 && var_check_func_name(key, lp->ll_di == NULL)) | 2741 && var_check_func_name(key, lp->ll_di == NULL)) |
2740 || !valid_varname(key); | 2742 || !valid_varname(key); |
2741 if (len != -1) | 2743 if (len != -1) |