summaryrefslogtreecommitdiff
path: root/http-fetch.c
diff options
context:
space:
mode:
authorDan McGee <dpmcgee@gmail.com>2011-03-27 20:32:19 -0500
committerJunio C Hamano <gitster@pobox.com>2011-04-03 10:59:40 -0700
commit13ee1384ef0004bd9fa6e4d2b832b49ce2e8a032 (patch)
treeabcdf39c80b8c2b3218e01bf764da1b0e141bf4d /http-fetch.c
parent37be802240a5201750679e20ad599dbb78376c72 (diff)
downloadgit-13ee1384ef0004bd9fa6e4d2b832b49ce2e8a032.tar.gz
Fix two unused variable warnings in gcc 4.6
Seen with -Wunused-but-set-variable. Signed-off-by: Dan McGee <dpmcgee@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'http-fetch.c')
-rw-r--r--http-fetch.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/http-fetch.c b/http-fetch.c
index 923904f97f..3af4c71bd0 100644
--- a/http-fetch.c
+++ b/http-fetch.c
@@ -8,7 +8,6 @@ static const char http_fetch_usage[] = "git http-fetch "
int main(int argc, const char **argv)
{
- const char *prefix;
struct walker *walker;
int commits_on_stdin = 0;
int commits;
@@ -60,7 +59,7 @@ int main(int argc, const char **argv)
if (argv[arg])
str_end_url_with_slash(argv[arg], &url);
- prefix = setup_git_directory();
+ setup_git_directory();
git_config(git_default_config, NULL);