Mercurial > vim
changeset 10986:62bcadce6c82 v8.0.0382
patch 8.0.0382: warning in tiny build for unused variable
commit https://github.com/vim/vim/commit/88e7688edaf6fcf079d3c1b1070c852cfbb28185
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Feb 27 20:33:46 2017 +0100
patch 8.0.0382: warning in tiny build for unused variable
Problem: Warning in tiny build for unused variable. (Tony Mechelynck)
Solution: Add #ifdefs.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 27 Feb 2017 20:45:04 +0100 |
parents | 09f7827e6d80 |
children | ea02bcfb3f75 |
files | src/screen.c src/version.c |
diffstat | 2 files changed, 12 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/screen.c +++ b/src/screen.c @@ -4189,7 +4189,9 @@ win_line( } else { +#ifdef FEAT_LINEBREAK int c0; +#endif if (p_extra_free != NULL) { @@ -4199,7 +4201,9 @@ win_line( /* * Get a character from the line itself. */ +#ifdef FEAT_LINEBREAK c0 = c = *ptr; +#endif #ifdef FEAT_MBYTE if (has_mbyte) { @@ -4216,7 +4220,12 @@ win_line( /* Overlong encoded ASCII or ASCII with composing char * is displayed normally, except a NUL. */ if (mb_c < 0x80) - c0 = c = mb_c; + { + c = mb_c; +# ifdef FEAT_LINEBREAK + c0 = mb_c; +# endif + } mb_utf8 = TRUE; /* At start of the line we can have a composing char.