From d1b5cf830bfe169745721b21245d2217d2c2453e Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Fri, 5 Apr 2019 19:57:29 +0200 Subject: build: fix Codacy/CppCheck warnings - remove unused variables - declare conditionally used variables conditionally - suppress unused variable warnings in the CMake tests - remove dead variable stores - consistently use WIN32 macro to detect Windows Closes https://github.com/curl/curl/pull/3739 --- src/tool_cb_wrt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tool_cb_wrt.c') diff --git a/src/tool_cb_wrt.c b/src/tool_cb_wrt.c index f403ab34c..2f699f326 100644 --- a/src/tool_cb_wrt.c +++ b/src/tool_cb_wrt.c @@ -159,7 +159,7 @@ size_t tool_write_cb(char *buffer, size_t sz, size_t nmemb, void *userdata) } } -#ifdef _WIN32 +#ifdef WIN32 fhnd = _get_osfhandle(fileno(outs->stream)); if(isatty(fileno(outs->stream)) && GetConsoleScreenBufferInfo((HANDLE)fhnd, &console_info)) { -- cgit v1.2.3