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_metalink.c | |
parent | bb0b10135caf58f82ee9e9d38f400880a7e5c9cc (diff) | |
download | curl-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 'src/tool_metalink.c')
-rw-r--r-- | src/tool_metalink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tool_metalink.c b/src/tool_metalink.c index 4c4261472..28aa71707 100644 --- a/src/tool_metalink.c +++ b/src/tool_metalink.c @@ -73,7 +73,7 @@ and later. If you're building for an older cat, well, sorry. */ # define COMMON_DIGEST_FOR_OPENSSL # include <CommonCrypto/CommonDigest.h> -#elif defined(_WIN32) +#elif defined(WIN32) /* For Windows: If no other crypto library is provided, we fallback to the hash functions provided within the Microsoft Windows CryptoAPI */ # include <wincrypt.h> @@ -380,7 +380,7 @@ static void SHA256_Final(unsigned char digest[32], SHA256_CTX *ctx) sha256_finish(ctx, digest); } -#elif defined(_WIN32) +#elif defined(WIN32) static void win32_crypto_final(struct win32_crypto_hash *ctx, unsigned char *digest, |