[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 215/254: curl_sasl: fix unused-variable warning
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 215/254: curl_sasl: fix unused-variable warning |
Date: |
Sat, 17 Jun 2017 16:54:07 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to annotated tag gnurl-7.54.1
in repository gnurl.
commit f8518059cecfaf2b338389cef7f71f145b21226d
Author: Marcel Raad <address@hidden>
AuthorDate: Sat Jun 3 11:59:38 2017 +0200
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]
---
lib/curl_sasl.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
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;
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnurl] 190/254: libtest/lib574.c: use correct callback proto, (continued)
- [GNUnet-SVN] [gnurl] 190/254: libtest/lib574.c: use correct callback proto, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 196/254: lib583: fix compiler warning, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 151/254: ghiper.c/hiperfifo.c: add comment about missing timer functionality, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 225/254: test1262: verify ftp download with -z for "if older than this", gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 167/254: LDAP: documentation update per #878 changes (#1506), gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 172/254: docs/CURLOPT_SSLVERSION.3: Correct define name in example, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 205/254: test1537: dedicated tests of the URL (un)escape API calls, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 170/254: time: fix type conversions and compiler warnings, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 245/254: test1521: fixed OOM handling, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 191/254: opts: more than 100 more examples for man pages..., gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 215/254: curl_sasl: fix unused-variable warning,
gnunet <=
- [GNUnet-SVN] [gnurl] 207/254: test1538: verify the libcurl strerror API calls, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 184/254: opts: more examples added to man pages, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 229/254: test1121: use stricter types to work with typcheck-gcc, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 177/254: tests: removed some redundant empty <stdout> sections, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 182/254: CURLOPT_PROXY.3: describe the environment variables more, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 241/254: setopt: check CURLOPT_ADDRESS_SCOPE option range, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 176/254: runtests.pl: removed <precommand> feature, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 199/254: curl-compilers.m4: escape square brackets in regex, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 217/254: libtest: fix implicit-fallthrough warnings with GCC 7, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 188/254: example/externalsocket.c: make it use CLOSESOCKETFUNCTION too, gnunet, 2017/06/17