1
0
forked from aniani/vim

patch 9.0.0838: compiler warnings for unused variables

Problem:    Compiler warnings for unused variables.
Solution:   Addjust #ifdef and remove unused variables. (John Marriott)
This commit is contained in:
Bram Moolenaar
2022-11-06 11:27:46 +00:00
parent cd9c8d400c
commit a25f718431
4 changed files with 7 additions and 8 deletions

View File

@@ -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);