From a25f718431ae001242a6a8b74733ee7685ccf07d Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 6 Nov 2022 11:27:46 +0000 Subject: patch 9.0.0838: compiler warnings for unused variables Problem: Compiler warnings for unused variables. Solution: Addjust #ifdef and remove unused variables. (John Marriott) --- src/os_win32.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/os_win32.c') 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); -- cgit v1.2.1