Skip to content

Commit 88e7688

Browse files
committed
patch 8.0.0382: warning in tiny build for unused variable
Problem: Warning in tiny build for unused variable. (Tony Mechelynck) Solution: Add #ifdefs.
1 parent aeb661e commit 88e7688

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

src/screen.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4189,7 +4189,9 @@ win_line(
41894189
}
41904190
else
41914191
{
4192+
#ifdef FEAT_LINEBREAK
41924193
int c0;
4194+
#endif
41934195

41944196
if (p_extra_free != NULL)
41954197
{
@@ -4199,7 +4201,9 @@ win_line(
41994201
/*
42004202
* Get a character from the line itself.
42014203
*/
4204+
#ifdef FEAT_LINEBREAK
42024205
c0 = c = *ptr;
4206+
#endif
42034207
#ifdef FEAT_MBYTE
42044208
if (has_mbyte)
42054209
{
@@ -4216,7 +4220,12 @@ win_line(
42164220
/* Overlong encoded ASCII or ASCII with composing char
42174221
* is displayed normally, except a NUL. */
42184222
if (mb_c < 0x80)
4219-
c0 = c = mb_c;
4223+
{
4224+
c = mb_c;
4225+
# ifdef FEAT_LINEBREAK
4226+
c0 = mb_c;
4227+
# endif
4228+
}
42204229
mb_utf8 = TRUE;
42214230

42224231
/* At start of the line we can have a composing char.

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
382,
767769
/**/
768770
381,
769771
/**/

0 commit comments

Comments
 (0)