diff options
Diffstat (limited to 'src/tool_metalink.c')
| -rw-r--r-- | src/tool_metalink.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/tool_metalink.c b/src/tool_metalink.c index bbbfc2a6..03f15974 100644 --- a/src/tool_metalink.c +++ b/src/tool_metalink.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -243,7 +243,7 @@ static int nss_hash_init(void **pctx, SECOidTag hash_alg) { PK11Context *ctx; - /* we have to initialize NSS if not initialized alraedy */ + /* we have to initialize NSS if not initialized already */ if(!NSS_IsInitialized() && !nss_context) { static NSSInitParameters params; params.length = sizeof params; @@ -461,6 +461,11 @@ static void SHA256_Final(unsigned char digest[32], SHA256_CTX *ctx) #endif /* CRYPTO LIBS */ +/* Disable this picky gcc-8 compiler warning */ +#if defined(__GNUC__) && (__GNUC__ >= 8) +#pragma GCC diagnostic ignored "-Wcast-function-type" +#endif + const digest_params MD5_DIGEST_PARAMS[] = { { (Curl_digest_init_func) MD5_Init, |
