summaryrefslogtreecommitdiff
path: root/src/gui_w32.c
diff options
context:
space:
mode:
authorK.Takata <kentkt@csc.jp>2022-01-29 15:27:58 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-29 15:27:58 +0000
commit135e15251efd96c960e51e8ab31333c2d6887983 (patch)
tree580dd95f4442cd1bc356fcac07de2a4ef1e00e37 /src/gui_w32.c
parentd5cec1f1f055316c353cfa15ad8d5eb0952d50a0 (diff)
downloadvim-git-135e15251efd96c960e51e8ab31333c2d6887983.tar.gz
patch 8.2.4256: MS-Windows: compiler warnings when compiled with /W4v8.2.4256
Problem: MS-Windows: compiler warnings when compiled with /W4. Solution: Small adjustments to the code. (Ken Takata, closes #9659)
Diffstat (limited to 'src/gui_w32.c')
-rw-r--r--src/gui_w32.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui_w32.c b/src/gui_w32.c
index 4a8917fae..11ab2346a 100644
--- a/src/gui_w32.c
+++ b/src/gui_w32.c
@@ -5780,7 +5780,7 @@ latin9_to_ucs(char_u *text, int len, WCHAR *unicodebuf)
* noticeably so.
*/
static void
-RevOut( HDC s_hdc,
+RevOut( HDC hdc,
int col,
int row,
UINT foptions,
@@ -5792,7 +5792,7 @@ RevOut( HDC s_hdc,
int ix;
for (ix = 0; ix < (int)len; ++ix)
- ExtTextOut(s_hdc, col + TEXT_X(ix), row, foptions,
+ ExtTextOut(hdc, col + TEXT_X(ix), row, foptions,
pcliprect, text + ix, 1, padding);
}
#endif
@@ -5868,7 +5868,6 @@ gui_mch_draw_string(
{
static int *padding = NULL;
static int pad_size = 0;
- int i;
const RECT *pcliprect = NULL;
UINT foptions = 0;
static WCHAR *unicodebuf = NULL;
@@ -5959,6 +5958,8 @@ gui_mch_draw_string(
if (pad_size != Columns || padding == NULL || padding[0] != gui.char_width)
{
+ int i;
+
vim_free(padding);
pad_size = Columns;