diff --git a/lib/http.c b/lib/http.c index 112911b5f4..482e7abb84 100644 --- a/lib/http.c +++ b/lib/http.c @@ -3310,8 +3310,14 @@ static CURLcode http_header_r(struct Curl_easy *data, static CURLcode http_header_s(struct Curl_easy *data, const char *hd, size_t hdlen) { +#if !defined(CURL_DISABLE_COOKIES) || !defined(CURL_DISABLE_HSTS) struct connectdata *conn = data->conn; const char *v; +#else + (void)data; + (void)hd; + (void)hdlen; +#endif #if !defined(CURL_DISABLE_COOKIES) v = (data->cookies && data->state.cookie_engine) ?