diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2022-06-08 15:14:09 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-06-08 15:14:09 +0100 |
commit | ebb01bdb273216607f60faddf791a1b378cccfa8 (patch) | |
tree | 479643307e2e9c253971a38ac0f8fa2aa62d3cc6 /src/gui_w32.c | |
parent | 68093d36bf87caf2c2ba7404c06d14ef8416c27a (diff) |
patch 8.2.5069: various warnings from clang on MS-Windowsv8.2.5069
Problem: Various warnings from clang on MS-Windows.
Solution: Fix the code to avoid the warnings. (Yegappan Lakshmanan,
closes #10538)
Diffstat (limited to 'src/gui_w32.c')
-rw-r--r-- | src/gui_w32.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui_w32.c b/src/gui_w32.c index 0bac12ac0d..3e1addbf91 100644 --- a/src/gui_w32.c +++ b/src/gui_w32.c @@ -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 |