curl / Mailing Lists / curl-library / Single Mail

curl-library

[PATCH 2/2] openssl: Fix unused variable compiler warning on fedora 17

From: Ben Greear via curl-library <curl-library_at_cool.haxx.se>
Date: Wed, 28 Nov 2018 09:20:45 -0800

From: Ben Greear <greearb_at_candelatech.com>

ctx_options was not used, so the compiler warned. Add
a (void)(ctx_options) line to make the compiler happy.

Hopefully that is the right fix...

Signed-off-by: Ben Greear <greearb_at_candelatech.com>

---
 lib/vtls/openssl.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c
index 720e87d..a3041b4 100644
--- a/lib/vtls/openssl.c
+++ b/lib/vtls/openssl.c
@@ -2167,6 +2167,7 @@ set_ssl_version_min_max(long *ctx_options, struct connectdata *conn,
     }
 #else
       (void)sockindex;
+      (void)ctx_options;
       failf(data, OSSL_PACKAGE " was built without TLS 1.3 support");
       return CURLE_NOT_BUILT_IN;
 #endif
-- 
2.7.5
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2018-11-28