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
Showing
- CMake/CurlTests.c 4 additions, 0 deletionsCMake/CurlTests.c
- include/curl/curl.h 1 addition, 1 deletioninclude/curl/curl.h
- lib/asyn-ares.c 1 addition, 1 deletionlib/asyn-ares.c
- lib/if2ip.c 5 additions, 2 deletionslib/if2ip.c
- lib/md5.c 1 addition, 1 deletionlib/md5.c
- lib/timeval.c 2 additions, 0 deletionslib/timeval.c
- lib/version.c 1 addition, 1 deletionlib/version.c
- lib/vtls/gskit.c 0 additions, 1 deletionlib/vtls/gskit.c
- packages/OS400/os400sys.c 0 additions, 1 deletionpackages/OS400/os400sys.c
- packages/vms/curl_crtl_init.c 0 additions, 1 deletionpackages/vms/curl_crtl_init.c
- src/tool_cb_prg.c 1 addition, 1 deletionsrc/tool_cb_prg.c
- src/tool_cb_wrt.c 1 addition, 1 deletionsrc/tool_cb_wrt.c
- src/tool_doswin.c 0 additions, 1 deletionsrc/tool_doswin.c
- src/tool_main.c 2 additions, 2 deletionssrc/tool_main.c
- src/tool_metalink.c 2 additions, 2 deletionssrc/tool_metalink.c
- tests/libtest/lib1522.c 3 additions, 1 deletiontests/libtest/lib1522.c
Please register or sign in to comment