diff options
author | Marcel Raad <Marcel.Raad@teamviewer.com> | 2019-04-05 19:57:29 +0200 |
---|---|---|
committer | Marcel Raad <Marcel.Raad@teamviewer.com> | 2019-04-11 21:08:44 +0200 |
commit | d1b5cf830bfe169745721b21245d2217d2c2453e (patch) | |
tree | 3f230490e3ba67789b84f94aebac29370b81092f /src/tool_cb_prg.c | |
parent | bb0b10135caf58f82ee9e9d38f400880a7e5c9cc (diff) |
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
Diffstat (limited to 'src/tool_cb_prg.c')
-rw-r--r-- | src/tool_cb_prg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool_cb_prg.c b/src/tool_cb_prg.c index 0539e9895..e2ee54225 100644 --- a/src/tool_cb_prg.c +++ b/src/tool_cb_prg.c @@ -221,7 +221,7 @@ void progressbarinit(struct ProgressData *bar, struct winsize ts; if(!ioctl(STDIN_FILENO, TIOCGWINSZ, &ts)) cols = ts.ws_col; -#elif defined(_WIN32) +#elif defined(WIN32) { HANDLE stderr_hnd = GetStdHandle(STD_ERROR_HANDLE); CONSOLE_SCREEN_BUFFER_INFO console_info; |