Skip to content

Commit

Permalink
patch 8.0.0382: warning in tiny build for unused variable
Browse files Browse the repository at this point in the history
Problem:    Warning in tiny build for unused variable. (Tony Mechelynck)
Solution:   Add #ifdefs.
  • Loading branch information
brammool committed Feb 27, 2017
1 parent aeb661e commit 88e7688
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/screen.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4189,7 +4189,9 @@ win_line(
} }
else else
{ {
#ifdef FEAT_LINEBREAK
int c0; int c0;
#endif


if (p_extra_free != NULL) if (p_extra_free != NULL)
{ {
Expand All @@ -4199,7 +4201,9 @@ win_line(
/* /*
* Get a character from the line itself. * Get a character from the line itself.
*/ */
#ifdef FEAT_LINEBREAK
c0 = c = *ptr; c0 = c = *ptr;
#endif
#ifdef FEAT_MBYTE #ifdef FEAT_MBYTE
if (has_mbyte) if (has_mbyte)
{ {
Expand All @@ -4216,7 +4220,12 @@ win_line(
/* Overlong encoded ASCII or ASCII with composing char /* Overlong encoded ASCII or ASCII with composing char
* is displayed normally, except a NUL. */ * is displayed normally, except a NUL. */
if (mb_c < 0x80) if (mb_c < 0x80)
c0 = c = mb_c; {
c = mb_c;
# ifdef FEAT_LINEBREAK
c0 = mb_c;
# endif
}
mb_utf8 = TRUE; mb_utf8 = TRUE;


/* At start of the line we can have a composing char. /* At start of the line we can have a composing char.
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -764,6 +764,8 @@ static char *(features[]) =


static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
382,
/**/ /**/
381, 381,
/**/ /**/
Expand Down

0 comments on commit 88e7688

Please sign in to comment.