Fix various dead stores found by the clang static analyzer
http-push.c::finish_request(): request is initialized by the for loop index-pack.c::free_base_data(): b is initialized by the for loop merge-recursive.c::process_renames(): move compare to narrower scope, and remove unused assignments to it remove unused variable renames2 xdiff/xdiffi.c::xdl_recs_cmp(): remove unused variable ec xdiff/xemit.c::xdl_emit_diff(): xche is always overwritten Signed-off-by: Benjamin Kramer <benny.kra@googlemail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
de7697808f
commit
8e24cbaeaf
@ -816,7 +816,7 @@ static void finish_request(struct transfer_request *request)
|
||||
#ifdef USE_CURL_MULTI
|
||||
static int fill_active_slot(void *unused)
|
||||
{
|
||||
struct transfer_request *request = request_queue_head;
|
||||
struct transfer_request *request;
|
||||
|
||||
if (aborted)
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user