Permalink
Browse files

patch 8.0.0972: compiler warnings for unused variables

Problem:    Compiler warnings for unused variables. (Tony Mechelynck)
Solution:   Add #ifdefs.
  • Loading branch information...
brammool committed Aug 19, 2017
1 parent 0aed9a2 commit 37b9b8199792882e3e0e7e19e230ea6442b9e857
Showing with 6 additions and 0 deletions.
  1. +4 −0 src/term.c
  2. +2 −0 src/version.c
View
@@ -161,11 +161,13 @@ static char_u *vim_tgetstr(char *s, char_u **pp);
static int detected_8bit = FALSE; /* detected 8-bit terminal */
#ifdef FEAT_TERMRESPONSE
/* When the cursor shape was detected these values are used:
* 1: block, 2: underline, 3: vertical bar
* initial_cursor_blink is only valid when initial_cursor_shape is not zero. */
static int initial_cursor_shape = 0;
static int initial_cursor_blink = FALSE;
#endif
static struct builtin_term builtin_termcaps[] =
{
@@ -3714,9 +3716,11 @@ term_cursor_mode(int forced)
* mode. */
if (!full_screen || *T_CEI == NUL)
{
# ifdef FEAT_TERMRESPONSE
if (forced && initial_cursor_shape > 0)
/* Restore to initial values. */
term_cursor_shape(initial_cursor_shape, initial_cursor_blink);
# endif
return;
}
View
@@ -769,6 +769,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
972,
/**/
971,
/**/

0 comments on commit 37b9b81

Please sign in to comment.