From 935138374516ef723a00bd7327e1f0d2653dcb9d Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sun, 20 Mar 2016 17:51:06 +0000 Subject: connect/ntlm/http: Fixed compilation warnings when verbose strings disabled warning C4189: 'data': local variable is initialized but not referenced --- lib/http.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/http.c') 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 -- cgit v1.2.3