Commit d211fcd3 authored by Yang Tse's avatar Yang Tse
Browse files

Silence compiler warning 'unused parameter running_handles' in function...

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.
parent 15983417
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
}