summaryrefslogtreecommitdiff
path: root/lib/vtls/gtls.c
diff options
context:
space:
mode:
authorMarcel Raad <raad@teamviewer.com>2017-04-08 13:40:41 +0200
committerMarcel Raad <raad@teamviewer.com>2017-04-08 13:40:41 +0200
commit45c78ad5b4883f0ce5978b36fb6a23fbd1f5e12b (patch)
tree14c0d0f85128512b78620fb7b8f3a4204d05be17 /lib/vtls/gtls.c
parente10db122a2ec085a4324f1addfa948838d5339fa (diff)
downloadcurl-45c78ad5b4883f0ce5978b36fb6a23fbd1f5e12b.tar.gz
vtls: fix unreferenced variable warnings
... by moving the variables into the correct #ifdef block.
Diffstat (limited to 'lib/vtls/gtls.c')
-rw-r--r--lib/vtls/gtls.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/vtls/gtls.c b/lib/vtls/gtls.c
index d705c72d8..51a5aa85b 100644
--- a/lib/vtls/gtls.c
+++ b/lib/vtls/gtls.c
@@ -973,7 +973,9 @@ gtls_connect_step3(struct connectdata *conn,
gnutls_datum_t proto;
#endif
CURLcode result = CURLE_OK;
+#ifndef CURL_DISABLE_VERBOSE_STRINGS
gnutls_protocol_t version = gnutls_protocol_get_version(session);
+#endif
const char * const hostname = SSL_IS_PROXY() ? conn->http_proxy.host.name :
conn->host.name;