diff src/term.c @ 31682:c55341fea626 v9.0.1173

patch 9.0.1173: compiler warning for unused variable on non-Unix systems Commit: https://github.com/vim/vim/commit/a47c0fb4adb43d16601e9d3bd0c2b22fdedab5b4 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 10 19:17:11 2023 +0000 patch 9.0.1173: compiler warning for unused variable on non-Unix systems Problem: Compiler warning for unused variable on non-Unix systems. Solution: Move #ifdef. (John Marriott)
author Bram Moolenaar <Bram@vim.org>
date Tue, 10 Jan 2023 20:30:04 +0100
parents 9dc48932db8e
children 59c474f6715d
line wrap: on
line diff
--- a/src/term.c
+++ b/src/term.c
@@ -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.