summaryrefslogtreecommitdiff
path: root/packages
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 /packages
parentbb0b10135caf58f82ee9e9d38f400880a7e5c9cc (diff)
downloadcurl-d1b5cf830bfe169745721b21245d2217d2c2453e.tar.gz
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 'packages')
-rw-r--r--packages/OS400/os400sys.c1
-rw-r--r--packages/vms/curl_crtl_init.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/packages/OS400/os400sys.c b/packages/OS400/os400sys.c
index c80f01080..84bc10abd 100644
--- a/packages/OS400/os400sys.c
+++ b/packages/OS400/os400sys.c
@@ -389,7 +389,6 @@ Curl_gsk_environment_open(gsk_handle * my_env_handle)
{
struct Curl_gsk_descriptor * p;
- gsk_handle h;
int rc;
if(!my_env_handle)
diff --git a/packages/vms/curl_crtl_init.c b/packages/vms/curl_crtl_init.c
index 01a34e555..7a8d84743 100644
--- a/packages/vms/curl_crtl_init.c
+++ b/packages/vms/curl_crtl_init.c
@@ -183,7 +183,6 @@ static void set_features(void)
status = sys_trnlnm("GNV$UNIX_SHELL",
unix_shell_name, sizeof unix_shell_name -1);
if (!$VMS_STATUS_SUCCESS(status)) {
- unix_shell_name[0] = 0;
use_unix_settings = 0;
}