From: Fredrik Kuivinen <freku045@student.liu.se>
To: git@vger.kernel.org
Cc: junkio@cox.net
Subject: [PATCH] git-blame: Kill warning "print_map defined but not used"
Date: Sun, 5 Mar 2006 12:16:50 +0100 [thread overview]
Message-ID: <20060305111650.GC23448@c165.ib.student.liu.se> (raw)
Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se>
---
blame.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
aebef8969d11b04634b9ab7a6ae85a0844b2e4c7
diff --git a/blame.c b/blame.c
index 6dccae5..0fb30ee 100644
--- a/blame.c
+++ b/blame.c
@@ -235,6 +235,7 @@ static void print_patch(struct patch *p)
}
/* For debugging only */
+#if DEBUG
static void print_map(struct commit *cmit, struct commit *other)
{
struct util_info *util = cmit->object.util;
@@ -267,6 +268,7 @@ static void print_map(struct commit *cmi
printf("\n");
}
}
+#endif
// p is a patch from commit to other.
static void fill_line_map(struct commit *commit, struct commit *other,
--
1.2.4.g4644-dirty
next reply other threads:[~2006-03-05 11:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-05 11:16 Fredrik Kuivinen [this message]
2006-03-05 18:58 ` [PATCH] git-blame: Kill warning "print_map defined but not used" Linus Torvalds
2006-03-05 22:45 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060305111650.GC23448@c165.ib.student.liu.se \
--to=freku045@student.liu.se \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).