]> granicus.if.org Git - curl/commit
build: fix Codacy/CppCheck warnings
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Fri, 5 Apr 2019 17:57:29 +0000 (19:57 +0200)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Thu, 11 Apr 2019 19:08:44 +0000 (21:08 +0200)
commitd1b5cf830bfe169745721b21245d2217d2c2453e
tree3f230490e3ba67789b84f94aebac29370b81092f
parentbb0b10135caf58f82ee9e9d38f400880a7e5c9cc
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
16 files changed:
CMake/CurlTests.c
include/curl/curl.h
lib/asyn-ares.c
lib/if2ip.c
lib/md5.c
lib/timeval.c
lib/version.c
lib/vtls/gskit.c
packages/OS400/os400sys.c
packages/vms/curl_crtl_init.c
src/tool_cb_prg.c
src/tool_cb_wrt.c
src/tool_doswin.c
src/tool_main.c
src/tool_metalink.c
tests/libtest/lib1522.c