aboutsummaryrefslogtreecommitdiff
path: root/lib/http.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2016-03-20 17:51:06 +0000
committerSteve Holme <steve_holme@hotmail.com>2016-03-20 17:51:06 +0000
commit935138374516ef723a00bd7327e1f0d2653dcb9d (patch)
treeeab460f8fb50ab6c7248b89c1c913a06122a8d21 /lib/http.c
parent89f397d7eb04c1baa7f3e04fcf7128ff1b5c7f2a (diff)
connect/ntlm/http: Fixed compilation warnings when verbose strings disabled
warning C4189: 'data': local variable is initialized but not referenced
Diffstat (limited to 'lib/http.c')
-rw-r--r--lib/http.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/http.c b/lib/http.c
index 409baa7e5..b85ff0d5a 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -567,10 +567,12 @@ output_auth_headers(struct connectdata *conn,
{
const char *auth = NULL;
CURLcode result = CURLE_OK;
+#if !defined(CURL_DISABLE_VERBOSE_STRINGS) || defined(USE_SPNEGO)
struct SessionHandle *data = conn->data;
+#endif
#ifdef USE_SPNEGO
- struct negotiatedata *negdata = proxy?
- &data->state.proxyneg:&data->state.negotiate;
+ struct negotiatedata *negdata = proxy ?
+ &data->state.proxyneg : &data->state.negotiate;
#endif
#ifdef CURL_DISABLE_CRYPTO_AUTH