diff --git a/lib/http_negotiate.c b/lib/http_negotiate.c
index 6a4b8660f7ec20d9b2c24e9798c28a2f1d18483e..5c8c06588db9bb132af274ce83b431d64dc93a0e 100644
--- a/lib/http_negotiate.c
+++ b/lib/http_negotiate.c
@@ -73,7 +73,6 @@ CURLcode Curl_input_negotiate(struct connectdata *conn, bool proxy,
   OM_uint32 major_status, minor_status, discard_st;
   gss_buffer_desc input_token = GSS_C_EMPTY_BUFFER;
   gss_buffer_desc output_token = GSS_C_EMPTY_BUFFER;
-  int ret;
   size_t len;
   size_t rawlen = 0;
   CURLcode result;