From bf72e0c67f26ea7c8fd941fdd1533c24c7b6cb43 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 18 Oct 2022 21:48:14 +0100 Subject: [PATCH] patch 9.0.0792: MS-Windows: compiler complains about unused function Problem: MS-Windows: compiler complains about unused function. Solution: Add #ifdef. (John Marriott) --- src/os_win32.c | 3 ++- src/version.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/os_win32.c b/src/os_win32.c index db43c9e81..5c845c638 100644 --- a/src/os_win32.c +++ b/src/os_win32.c @@ -1231,7 +1231,7 @@ mch_bevalterm_changed(void) } # endif - +#ifdef VIMDLL /* * Win32 console mouse scroll event handler. * Loosely based on the _OnMouseWheel() function in gui_w32.c @@ -1324,6 +1324,7 @@ decode_mouse_wheel(MOUSE_EVENT_RECORD *pmer) return; } +#endif /* * Decode a MOUSE_EVENT. If it's a valid event, return MOUSE_LEFT, diff --git a/src/version.c b/src/version.c index 4d5134511..8111f8504 100644 --- a/src/version.c +++ b/src/version.c @@ -695,6 +695,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 792, /**/ 791, /**/ -- 2.40.0