| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -59,7 +59,7 @@ static int mark_parents(git_revwalk *walk, git_commit_list_node *one, | |||
| 59 | 59 | /* as long as there are non-STALE commits */ | |
| 60 | 60 | while (interesting(&list, roots)) { | |
| 61 | 61 | git_commit_list_node *commit = git_pqueue_pop(&list); | |
| 62 | - int flags; | ||
| 62 | + unsigned int flags; | ||
| 63 | 63 | ||
| 64 | 64 | if (commit == NULL) | |
| 65 | 65 | break; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -24,7 +24,7 @@ struct memobject { | |||
| 24 | 24 | git_oid oid; | |
| 25 | 25 | size_t len; | |
| 26 | 26 | git_otype type; | |
| 27 | - char data[]; | ||
| 27 | + char data[GIT_FLEX_ARRAY]; | ||
| 28 | 28 | }; | |
| 29 | 29 | ||
| 30 | 30 | struct memory_packer_db { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -509,8 +509,10 @@ int git_packfile_resolve_header( | |||
| 509 | 509 | git_packfile_stream_free(&stream); | |
| 510 | 510 | if (error < 0) | |
| 511 | 511 | return error; | |
| 512 | - } else | ||
| 512 | + } else { | ||
| 513 | 513 | *size_p = size; | |
| 514 | + base_offset = 0; | ||
| 515 | + } | ||
| 514 | 516 | ||
| 515 | 517 | while (type == GIT_OBJ_OFS_DELTA || type == GIT_OBJ_REF_DELTA) { | |
| 516 | 518 | curpos = base_offset; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -284,7 +284,7 @@ static int create_binary( | |||
| 284 | 284 | size_t b_datalen) | |
| 285 | 285 | { | |
| 286 | 286 | git_buf deflate = GIT_BUF_INIT, delta = GIT_BUF_INIT; | |
| 287 | - size_t delta_data_len; | ||
| 287 | + size_t delta_data_len = 0; | ||
| 288 | 288 | int error; | |
| 289 | 289 | ||
| 290 | 290 | /* The git_delta function accepts unsigned long only */ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1145,7 +1145,6 @@ int git_path_diriter_init( | |||
| 1145 | 1145 | unsigned int flags) | |
| 1146 | 1146 | { | |
| 1147 | 1147 | git_win32_path path_filter; | |
| 1148 | - git_buf hack = {0}; | ||
| 1149 | 1148 | ||
| 1150 | 1149 | static int is_win7_or_later = -1; | |
| 1151 | 1150 | if (is_win7_or_later < 0) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -290,7 +290,7 @@ static void mark_parents_uninteresting(git_commit_list_node *commit) | |||
| 290 | 290 | ||
| 291 | 291 | ||
| 292 | 292 | while (parents) { | |
| 293 | - git_commit_list_node *commit = git_commit_list_pop(&parents); | ||
| 293 | + commit = git_commit_list_pop(&parents); | ||
| 294 | 294 | ||
| 295 | 295 | while (commit) { | |
| 296 | 296 | if (commit->uninteresting) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -412,12 +412,12 @@ int git_smart__negotiate_fetch(git_transport *transport, git_repository *repo, c | |||
| 412 | 412 | ||
| 413 | 413 | if (i % 20 == 0 && t->rpc) { | |
| 414 | 414 | git_pkt_ack *pkt; | |
| 415 | - unsigned int i; | ||
| 415 | + unsigned int j; | ||
| 416 | 416 | ||
| 417 | 417 | if ((error = git_pkt_buffer_wants(wants, count, &t->caps, &data)) < 0) | |
| 418 | 418 | goto on_error; | |
| 419 | 419 | ||
| 420 | - git_vector_foreach(&t->common, i, pkt) { | ||
| 420 | + git_vector_foreach(&t->common, j, pkt) { | ||
| 421 | 421 | if ((error = git_pkt_buffer_have(&pkt->oid, &data)) < 0) | |
| 422 | 422 | goto on_error; | |
| 423 | 423 | } | |
@@ -432,12 +432,12 @@ int git_smart__negotiate_fetch(git_transport *transport, git_repository *repo, c | |||
| 432 | 432 | /* Tell the other end that we're done negotiating */ | |
| 433 | 433 | if (t->rpc && t->common.length > 0) { | |
| 434 | 434 | git_pkt_ack *pkt; | |
| 435 | - unsigned int i; | ||
| 435 | + unsigned int j; | ||
| 436 | 436 | ||
| 437 | 437 | if ((error = git_pkt_buffer_wants(wants, count, &t->caps, &data)) < 0) | |
| 438 | 438 | goto on_error; | |
| 439 | 439 | ||
| 440 | - git_vector_foreach(&t->common, i, pkt) { | ||
| 440 | + git_vector_foreach(&t->common, j, pkt) { | ||
| 441 | 441 | if ((error = git_pkt_buffer_have(&pkt->oid, &data)) < 0) | |
| 442 | 442 | goto on_error; | |
| 443 | 443 | } | |
@@ -728,7 +728,7 @@ static int add_push_report_pkt(git_push *push, git_pkt *pkt) | |||
| 728 | 728 | static int add_push_report_sideband_pkt(git_push *push, git_pkt_data *data_pkt, git_buf *data_pkt_buf) | |
| 729 | 729 | { | |
| 730 | 730 | git_pkt *pkt; | |
| 731 | - const char *line, *line_end; | ||
| 731 | + const char *line, *line_end = NULL; | ||
| 732 | 732 | size_t line_len; | |
| 733 | 733 | int error; | |
| 734 | 734 | int reading_from_buf = data_pkt_buf->size > 0; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -79,7 +79,7 @@ typedef struct { | |||
| 79 | 79 | } \ | |
| 80 | 80 | } while (0) | |
| 81 | 81 | ||
| 82 | - static void cl_git_thread_check(void *data) | ||
| 82 | + GIT_INLINE(void) cl_git_thread_check(void *data) | ||
| 83 | 83 | { | |
| 84 | 84 | cl_git_thread_err *threaderr = (cl_git_thread_err *)data; | |
| 85 | 85 | if (threaderr->error != 0) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments