git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] git-blame: Kill warning "print_map defined but not used"

From
Fredrik Kuivinen <freku045@student.liu.se>
Date
Mar 5, 2006, 11:16 UTC
Message-ID
<20060305111650.GC23448@c165.ib.student.liu.se>
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: Linus Torvalds
Message 1 of 3 in “git-blame: Kill warning "print_map defined but not used"”
  1. git-blame: Kill warning "print_map defined but not used"Fredrik Kuivinen, Mar 5, 2006
  2. Linus TorvaldsMar 5, 2006
  3. Junio C HamanoMar 5, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.