Mercurial > vim
changeset 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 | a85d210b3bdc |
children | 35d5f26cc291 |
files | src/term.c src/version.c |
diffstat | 2 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/term.c +++ b/src/term.c @@ -161,11 +161,13 @@ static char_u *vim_tgetstr(char *s, char 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; }