]> granicus.if.org Git - vim/commitdiff
patch 8.0.0972: compiler warnings for unused variables v8.0.0972
authorBram Moolenaar <Bram@vim.org>
Sat, 19 Aug 2017 21:23:43 +0000 (23:23 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 19 Aug 2017 21:23:43 +0000 (23:23 +0200)
Problem:    Compiler warnings for unused variables. (Tony Mechelynck)
Solution:   Add #ifdefs.

src/term.c
src/version.c

index 8fb3e128c1c24c94265080692953c59552397dea..44b196febf84f15226a4080dadd927072d3fecab 100644 (file)
@@ -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;
     }
 
index 9f9b8ab4e51e4f6ebd978a2f8b3e6730c5509190..cf72cb884e3d3a294dc831db4ba21af1c0a2b5fd 100644 (file)
@@ -769,6 +769,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    972,
 /**/
     971,
 /**/