summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 37be802)
raw | patch | inline | side by side (parent: 37be802)
author | Dan McGee <dpmcgee@gmail.com> | |
Mon, 28 Mar 2011 01:32:19 +0000 (20:32 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 3 Apr 2011 17:59:40 +0000 (10:59 -0700) |
Seen with -Wunused-but-set-variable.
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http-fetch.c | patch | blob | history | |
merge-recursive.c | patch | blob | history |
diff --git a/http-fetch.c b/http-fetch.c
index 923904f97f9274d09a0a0b08543492f78a141f79..3af4c71bd0fb8370c6f08b0e3d43adc722cac2f4 100644 (file)
--- a/http-fetch.c
+++ b/http-fetch.c
int main(int argc, const char **argv)
{
- const char *prefix;
struct walker *walker;
int commits_on_stdin = 0;
int commits;
if (argv[arg])
str_end_url_with_slash(argv[arg], &url);
- prefix = setup_git_directory();
+ setup_git_directory();
git_config(git_default_config, NULL);
diff --git a/merge-recursive.c b/merge-recursive.c
index 8e82a8b1a5ab8a2f5af00910a8febda93b9e420d..af131508ec7ffa3ac7b1b1b1cadfcda0040becf2 100644 (file)
--- a/merge-recursive.c
+++ b/merge-recursive.c
*/
const char *last_file = NULL;
int last_len = 0;
- struct stage_data *last_e;
int i;
for (i = 0; i < entries->nr; i++) {
if (S_ISREG(e->stages[2].mode) || S_ISLNK(e->stages[2].mode)) {
last_file = path;
last_len = len;
- last_e = e;
} else {
last_file = NULL;
}
}
for (i = 0, j = 0; i < a_renames->nr || j < b_renames->nr;) {
- char *src;
struct string_list *renames1, *renames2Dst;
struct rename *ren1 = NULL, *ren2 = NULL;
const char *branch1, *branch2;
ren2 = ren1;
ren1 = tmp;
}
- src = ren1->pair->one->path;
ren1->dst_entry->processed = 1;
ren1->src_entry->processed = 1;