diff options
author | Marcel Raad <raad@teamviewer.com> | 2017-06-03 11:59:38 +0200 |
---|---|---|
committer | Marcel Raad <raad@teamviewer.com> | 2017-06-03 11:59:38 +0200 |
commit | f8518059cecfaf2b338389cef7f71f145b21226d (patch) | |
tree | 9d92e5b000371039b5fd2b7891285d04e2036105 | |
parent | 191349eb75b06728760879f374fb8e78ddd9781f (diff) | |
download | curl-f8518059cecfaf2b338389cef7f71f145b21226d.tar.gz |
curl_sasl: fix unused-variable warning
This fixes the following warning with CURL_DISABLE_CRYPTO_AUTH,
as seen in the autobuilds:
curl_sasl.c:417:9: warning: unused variable 'serverdata'
[-Wunused-variable]
-rw-r--r-- | lib/curl_sasl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/curl_sasl.c b/lib/curl_sasl.c index 025b5dbe3..bd574b5e2 100644 --- a/lib/curl_sasl.c +++ b/lib/curl_sasl.c @@ -414,7 +414,6 @@ CURLcode Curl_sasl_continue(struct SASL *sasl, struct connectdata *conn, const char * const hostname = SSL_IS_PROXY() ? conn->http_proxy.host.name : conn->host.name; const long int port = SSL_IS_PROXY() ? conn->port : conn->remote_port; - char *serverdata; #if !defined(CURL_DISABLE_CRYPTO_AUTH) char *chlg = NULL; size_t chlglen = 0; @@ -424,6 +423,10 @@ CURLcode Curl_sasl_continue(struct SASL *sasl, struct connectdata *conn, data->set.str[STRING_SERVICE_NAME] : sasl->params->service; #endif +#if !defined(CURL_DISABLE_CRYPTO_AUTH) || defined(USE_KERBEROS5) || \ + defined(USE_NTLM) + char *serverdata; +#endif size_t len = 0; *progress = SASL_INPROGRESS; |