changeset 20776:7728e309e013 v8.2.0940

patch 8.2.0940: build failure with tiny features Commit: https://github.com/vim/vim/commit/0ca8b5ba7ba72d739ee15d0d6534aa20f863f3c3 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jun 9 21:35:36 2020 +0200 patch 8.2.0940: build failure with tiny features Problem: Build failure with tiny features. Solution: Add #ifdef. Add UNUSED. A bit more cleaning up.
author Bram Moolenaar <Bram@vim.org>
date Tue, 09 Jun 2020 21:45:03 +0200
parents 7ea49c0a73c2
children 9e7672e41fba
files src/term.c src/version.c
diffstat 2 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/term.c
+++ b/src/term.c
@@ -4384,8 +4384,12 @@ modifiers2keycode(int modifiers, int *ke
     return new_slen;
 }
 
+#ifdef FEAT_TERMRESPONSE
+/*
+ * Handle a cursor position report.
+ */
     static void
-handle_u7_response(int *arg, char_u *tp, int csi_len)
+handle_u7_response(int *arg, char_u *tp UNUSED, int csi_len UNUSED)
 {
     if (arg[0] == 2 && arg[1] >= 2)
     {
@@ -4403,8 +4407,7 @@ handle_u7_response(int *arg, char_u *tp,
 	    // Setting the option causes a screen redraw. Do
 	    // that right away if possible, keeping any
 	    // messages.
-	    set_option_value((char_u *)"ambw", 0L,
-			     (char_u *)aw, 0);
+	    set_option_value((char_u *)"ambw", 0L, (char_u *)aw, 0);
 # ifdef DEBUG_TERMRESPONSE
 	    {
 		int r = redraw_asap(CLEAR);
@@ -5029,6 +5032,7 @@ handle_dcs(char_u *tp, char_u *argp, int
     }
     return OK;
 }
+#endif // FEAT_TERMRESPONSE
 
 /*
  * Check if typebuf.tb_buf[] contains a terminal key code.
--- a/src/version.c
+++ b/src/version.c
@@ -755,6 +755,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    940,
+/**/
     939,
 /**/
     938,