Skip to content

Commit 37b9b81

Browse files
committed
patch 8.0.0972: compiler warnings for unused variables
Problem: Compiler warnings for unused variables. (Tony Mechelynck) Solution: Add #ifdefs.
1 parent 0aed9a2 commit 37b9b81

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/term.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,13 @@ static char_u *vim_tgetstr(char *s, char_u **pp);
161161

162162
static int detected_8bit = FALSE; /* detected 8-bit terminal */
163163

164+
#ifdef FEAT_TERMRESPONSE
164165
/* When the cursor shape was detected these values are used:
165166
* 1: block, 2: underline, 3: vertical bar
166167
* initial_cursor_blink is only valid when initial_cursor_shape is not zero. */
167168
static int initial_cursor_shape = 0;
168169
static int initial_cursor_blink = FALSE;
170+
#endif
169171

170172
static struct builtin_term builtin_termcaps[] =
171173
{
@@ -3714,9 +3716,11 @@ term_cursor_mode(int forced)
37143716
* mode. */
37153717
if (!full_screen || *T_CEI == NUL)
37163718
{
3719+
# ifdef FEAT_TERMRESPONSE
37173720
if (forced && initial_cursor_shape > 0)
37183721
/* Restore to initial values. */
37193722
term_cursor_shape(initial_cursor_shape, initial_cursor_blink);
3723+
# endif
37203724
return;
37213725
}
37223726

src/version.c

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

770770
static int included_patches[] =
771771
{ /* Add new patch number below this line */
772+
/**/
773+
972,
772774
/**/
773775
971,
774776
/**/

0 commit comments

Comments
 (0)