]> granicus.if.org Git - vim/commitdiff
patch 9.0.1173: compiler warning for unused variable on non-Unix systems v9.0.1173
authorBram Moolenaar <Bram@vim.org>
Tue, 10 Jan 2023 19:17:11 +0000 (19:17 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 10 Jan 2023 19:17:11 +0000 (19:17 +0000)
Problem:    Compiler warning for unused variable on non-Unix systems.
Solution:   Move #ifdef. (John Marriott)

src/term.c
src/version.c

index 43d0db6780ff2a3f719bd09e0ec98a34eb4ef3fe..0b902c94ebe1c6eecc22146ebcd86be5dedf7d03 100644 (file)
@@ -2159,6 +2159,7 @@ set_termname(char_u *term)
     init_term_props(FALSE);
 #endif
 
+#if defined(UNIX) || defined(VMS)
     // If the first number in t_XM is 1006 then the terminal will support SGR
     // mouse reporting.
     int did_set_ttym = FALSE;
@@ -2175,7 +2176,6 @@ set_termname(char_u *term)
        }
     }
 
-#if defined(UNIX) || defined(VMS)
     /*
      * For Unix, set the 'ttymouse' option to the type of mouse to be used.
      * The termcode for the mouse is added as a side effect in option.c.
index 6ab7b95dec35339db573c738bd80ace41ac9cf4a..ebe699f44ef5a5c4818b2bbbfc1fc0cf3274e164 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1173,
 /**/
     1172,
 /**/