aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-05-14 09:55:34 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-05-14 23:09:51 +0200
commitc0f704dbae32c6e1c9bb5325d6317fca67de04f5 (patch)
treec1f4176cd53c4e4f22f0a66ea7a1cf41202ed281 /src
parenta5aa2bdf348391ee79bcbd9f43166f4a7dd4ed52 (diff)
gcc: disable picky gcc-8 function pointer warnings in two places
Reported-by: Rikard Falkeborn Bug: #2560 Closes #2569
Diffstat (limited to 'src')
-rw-r--r--src/tool_metalink.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tool_metalink.c b/src/tool_metalink.c
index 91c5878c9..03f159745 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
@@ -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,