aboutsummaryrefslogtreecommitdiff
path: root/src/tool_main.c
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2019-04-05 19:57:29 +0200
committerMarcel Raad <Marcel.Raad@teamviewer.com>2019-04-11 21:08:44 +0200
commitd1b5cf830bfe169745721b21245d2217d2c2453e (patch)
tree3f230490e3ba67789b84f94aebac29370b81092f /src/tool_main.c
parentbb0b10135caf58f82ee9e9d38f400880a7e5c9cc (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_main.c')
-rw-r--r--src/tool_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tool_main.c b/src/tool_main.c
index 5679f361e..7d1e62b79 100644
--- a/src/tool_main.c
+++ b/src/tool_main.c
@@ -237,7 +237,7 @@ static void main_free(struct GlobalConfig *config)
config->last = NULL;
}
-#ifdef _WIN32
+#ifdef WIN32
/* TerminalSettings for Windows */
static struct TerminalSettings {
HANDLE hStdOut;
@@ -275,7 +275,7 @@ static void configure_terminal(void)
static void restore_terminal(void)
{
-#ifdef _WIN32
+#ifdef WIN32
/* Restore Console output mode and codepage to whatever they were
* when Curl started */
SetConsoleMode(TerminalSettings.hStdOut, TerminalSettings.dwOutputMode);