diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-11-06 11:27:46 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-11-06 11:27:46 +0000 |
commit | a25f718431ae001242a6a8b74733ee7685ccf07d (patch) | |
tree | 3561e94c7f3f901ca0d71bc9c5071b543a199438 /src/os_win32.c | |
parent | cd9c8d400c1eb9cbb4ff6a33be02f91a30ab13b2 (diff) | |
download | vim-git-9.0.0838.tar.gz |
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/os_win32.c')
-rw-r--r-- | src/os_win32.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/os_win32.c b/src/os_win32.c index fc6ea5ea3..b5ded95d5 100644 --- a/src/os_win32.c +++ b/src/os_win32.c @@ -4394,7 +4394,6 @@ dump_pipe(int options, int ret; DWORD len; DWORD toRead; - int repeatCount; // we query the pipe to see if there is any data to read // to avoid to perform a blocking read @@ -4405,11 +4404,9 @@ dump_pipe(int options, &availableBytes, // available bytes total NULL); // byteLeft - repeatCount = 0; // We got real data in the pipe, read it while (ret != 0 && availableBytes > 0) { - repeatCount++; toRead = (DWORD)(BUFLEN - *buffer_off); toRead = availableBytes < toRead ? availableBytes : toRead; ReadFile(g_hChildStd_OUT_Rd, buffer + *buffer_off, toRead , &len, NULL); |