From d211fcd34fe1c667abb55f5a1f56da8824faeb52 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Thu, 3 Aug 2006 11:41:49 +0000 Subject: [PATCH] Silence compiler warning 'unused parameter running_handles' in function multi_runsingle(). This is done here returning multi->num_alive in the running_handles parameter even when functions that call multi_runsingle() at this moment overwrite the returned value with the one that is valid when those functions curl_multi_perform() and multi_socket() have removed expired timers from the splay. Most probably, parameter 'running_handles' in function multi_runsingle() should be just removed. --- lib/multi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/multi.c b/lib/multi.c index 4d8a89fb5..3190c53b0 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -935,6 +935,7 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi, multi->num_msgs++; /* increase message counter */ } + *running_handles = multi->num_alive; return result; }