summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2ce1a1f)
raw | patch | inline | side by side (parent: 2ce1a1f)
author | Jeff King <peff@peff.net> | |
Sun, 18 Nov 2007 08:17:23 +0000 (03:17 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 21 Nov 2007 07:11:00 +0000 (23:11 -0800) |
Because this function is static and used only by the
http-walker, when NO_CURL is defined, gcc emits a "defined
but not used" warning.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http-walker, when NO_CURL is defined, gcc emits a "defined
but not used" warning.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
transport.c | patch | blob | history |
diff --git a/transport.c b/transport.c
index e8a2608372de06ef3f77d9a450776e3095057c9f..43b9e7c410882d82fd6b08532e30df9b82b3ffb1 100644 (file)
--- a/transport.c
+++ b/transport.c
/* Generic functions for using commit walkers */
+#ifndef NO_CURL /* http fetch is the only user */
static int fetch_objs_via_walker(struct transport *transport,
int nr_objs, struct ref **to_fetch)
{
free(dest);
return 0;
}
+#endif /* NO_CURL */
static int disconnect_walker(struct transport *transport)
{