comparison src/term.c @ 12184:76fbd85c3cea v8.0.0972

patch 8.0.0972: compiler warnings for unused variables commit https://github.com/vim/vim/commit/37b9b8199792882e3e0e7e19e230ea6442b9e857 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 19 23:23:43 2017 +0200 patch 8.0.0972: compiler warnings for unused variables Problem: Compiler warnings for unused variables. (Tony Mechelynck) Solution: Add #ifdefs.
author Christian Brabandt <cb@256bit.org>
date Sat, 19 Aug 2017 23:30:06 +0200
parents c314cd883fcc
children 36456f237c59
comparison
equal deleted inserted replaced
12183:a85d210b3bdc 12184:76fbd85c3cea
159 static char_u *vim_tgetstr(char *s, char_u **pp); 159 static char_u *vim_tgetstr(char *s, char_u **pp);
160 #endif /* HAVE_TGETENT */ 160 #endif /* HAVE_TGETENT */
161 161
162 static int detected_8bit = FALSE; /* detected 8-bit terminal */ 162 static int detected_8bit = FALSE; /* detected 8-bit terminal */
163 163
164 #ifdef FEAT_TERMRESPONSE
164 /* When the cursor shape was detected these values are used: 165 /* When the cursor shape was detected these values are used:
165 * 1: block, 2: underline, 3: vertical bar 166 * 1: block, 2: underline, 3: vertical bar
166 * initial_cursor_blink is only valid when initial_cursor_shape is not zero. */ 167 * initial_cursor_blink is only valid when initial_cursor_shape is not zero. */
167 static int initial_cursor_shape = 0; 168 static int initial_cursor_shape = 0;
168 static int initial_cursor_blink = FALSE; 169 static int initial_cursor_blink = FALSE;
170 #endif
169 171
170 static struct builtin_term builtin_termcaps[] = 172 static struct builtin_term builtin_termcaps[] =
171 { 173 {
172 174
173 #if defined(FEAT_GUI) 175 #if defined(FEAT_GUI)
3712 3714
3713 /* Only do something when redrawing the screen and we can restore the 3715 /* Only do something when redrawing the screen and we can restore the
3714 * mode. */ 3716 * mode. */
3715 if (!full_screen || *T_CEI == NUL) 3717 if (!full_screen || *T_CEI == NUL)
3716 { 3718 {
3719 # ifdef FEAT_TERMRESPONSE
3717 if (forced && initial_cursor_shape > 0) 3720 if (forced && initial_cursor_shape > 0)
3718 /* Restore to initial values. */ 3721 /* Restore to initial values. */
3719 term_cursor_shape(initial_cursor_shape, initial_cursor_blink); 3722 term_cursor_shape(initial_cursor_shape, initial_cursor_blink);
3723 # endif
3720 return; 3724 return;
3721 } 3725 }
3722 3726
3723 if ((State & REPLACE) == REPLACE) 3727 if ((State & REPLACE) == REPLACE)
3724 { 3728 {