summaryrefslogtreecommitdiffstats
path: root/src/gui_w32.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-11-06 11:27:46 +0000
committerBram Moolenaar <Bram@vim.org>2022-11-06 11:27:46 +0000
commita25f718431ae001242a6a8b74733ee7685ccf07d (patch)
tree3561e94c7f3f901ca0d71bc9c5071b543a199438 /src/gui_w32.c
parentcd9c8d400c1eb9cbb4ff6a33be02f91a30ab13b2 (diff)
patch 9.0.0838: compiler warnings for unused variablesv9.0.0838
Problem: Compiler warnings for unused variables. Solution: Addjust #ifdef and remove unused variables. (John Marriott)
Diffstat (limited to 'src/gui_w32.c')
-rw-r--r--src/gui_w32.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gui_w32.c b/src/gui_w32.c
index 8424c6cefd..9399c930ec 100644
--- a/src/gui_w32.c
+++ b/src/gui_w32.c
@@ -6190,13 +6190,11 @@ gui_mch_draw_string(
// handled here.
int i;
int wlen; // string length in words
- int clen; // string length in characters
int cells; // cell width of string up to composing char
int cw; // width of current cell
int c;
wlen = 0;
- clen = 0;
cells = 0;
for (i = 0; i < len; )
{
@@ -6236,7 +6234,6 @@ gui_mch_draw_string(
}
cells += cw;
i += utf_ptr2len_len(text + i, len - i);
- ++clen;
}
#if defined(FEAT_DIRECTX)
if (IS_ENABLE_DIRECTX())