Mercurial > vim
comparison src/eval.c @ 8487:ce789e3dc84d v7.4.1534
commit https://github.com/vim/vim/commit/846cdb227526272e2cd8ecba4f7168e2226cd633
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Mar 11 18:52:22 2016 +0100
patch 7.4.1534
Problem: Compiler warning for shadowed variable. (Kazunobu Kuriyama)
Solution: Rename it.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 11 Mar 2016 19:00:06 +0100 |
parents | 675ec6cc9021 |
children | 76b9c2305531 |
comparison
equal
deleted
inserted
replaced
8486:5ede4fe1aed5 | 8487:ce789e3dc84d |
---|---|
15195 buf = buflist_find_by_name(opt.jo_io_name[PART_IN], FALSE); | 15195 buf = buflist_find_by_name(opt.jo_io_name[PART_IN], FALSE); |
15196 if (buf == NULL) | 15196 if (buf == NULL) |
15197 return; | 15197 return; |
15198 if (buf->b_ml.ml_mfp == NULL) | 15198 if (buf->b_ml.ml_mfp == NULL) |
15199 { | 15199 { |
15200 char_u buf[NUMBUFLEN]; | 15200 char_u numbuf[NUMBUFLEN]; |
15201 char_u *s; | 15201 char_u *s; |
15202 | 15202 |
15203 if (opt.jo_set & JO_IN_BUF) | 15203 if (opt.jo_set & JO_IN_BUF) |
15204 { | 15204 { |
15205 sprintf((char *)buf, "%d", opt.jo_io_buf[PART_IN]); | 15205 sprintf((char *)numbuf, "%d", opt.jo_io_buf[PART_IN]); |
15206 s = buf; | 15206 s = numbuf; |
15207 } | 15207 } |
15208 else | 15208 else |
15209 s = opt.jo_io_name[PART_IN]; | 15209 s = opt.jo_io_name[PART_IN]; |
15210 EMSG2(_("E918: buffer must be loaded: %s"), s); | 15210 EMSG2(_("E918: buffer must be loaded: %s"), s); |
15211 return; | 15211 return; |