mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 8.2.5069: various warnings from clang on MS-Windows
Problem: Various warnings from clang on MS-Windows. Solution: Fix the code to avoid the warnings. (Yegappan Lakshmanan, closes #10538)
This commit is contained in:
committed by
Bram Moolenaar
parent
68093d36bf
commit
ebb01bdb27
@@ -4153,7 +4153,8 @@ _OnMouseWheel(HWND hwnd, WPARAM wParam, LPARAM lParam, int horizontal)
|
||||
{
|
||||
int button;
|
||||
win_T *wp;
|
||||
int modifiers, kbd_modifiers;
|
||||
int modifiers = 0;
|
||||
int kbd_modifiers;
|
||||
int zDelta = GET_WHEEL_DELTA_WPARAM(wParam);
|
||||
POINT pt;
|
||||
|
||||
@@ -4213,7 +4214,7 @@ _OnMouseWheel(HWND hwnd, WPARAM wParam, LPARAM lParam, int horizontal)
|
||||
pt.y = GET_Y_LPARAM(lParam);
|
||||
ScreenToClient(s_textArea, &pt);
|
||||
|
||||
gui_send_mouse_event(button, pt.x, pt.y, FALSE, kbd_modifiers);
|
||||
gui_send_mouse_event(button, pt.x, pt.y, FALSE, modifiers);
|
||||
}
|
||||
|
||||
#ifdef USE_SYSMENU_FONT
|
||||
|
Reference in New Issue
Block a user