From e17f9268a8af0346c47378f1a9a43ccd6a465f42 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Sun, 25 Feb 2018 13:29:01 +0100 Subject: [PATCH] Fix warning in GCC 8.0.1 (Fedora Rawhide) The warning was: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] --- src/core/libs/supl/supl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/libs/supl/supl.c b/src/core/libs/supl/supl.c index 6a06bb252..021b65327 100644 --- a/src/core/libs/supl/supl.c +++ b/src/core/libs/supl/supl.c @@ -221,7 +221,7 @@ int EXPORT supl_server_connect(supl_ctx_t *ctx, char *server) { SSLeay_add_ssl_algorithms(); // meth = TLSv1_client_method(); - meth = SSLv23_client_method(); + meth = (SSL_METHOD*)SSLv23_client_method(); SSL_load_error_strings(); ctx->ssl_ctx = SSL_CTX_new(meth); if (!ctx->ssl_ctx) return E_SUPL_CONNECT;