summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d6b7e0b)
raw | patch | inline | side by side (parent: d6b7e0b)
author | Junio C Hamano <junkio@cox.net> | |
Mon, 30 Oct 2006 23:29:53 +0000 (15:29 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 30 Oct 2006 23:29:53 +0000 (15:29 -0800) |
Otherwise "make CFLAGS=-DDEBUG=1" is cumbersome to run.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
blame.c | patch | blob | history | |
cache-tree.c | patch | blob | history |
index 8cfd5d94c777770a2019e058f1140ecd5a5c9aa2..3e227d27124ff3eb09409a781c532de5bfc52369 100644 (file)
--- a/blame.c
+++ b/blame.c
#include "revision.h"
#include "xdiff-interface.h"
+#ifndef DEBUG
#define DEBUG 0
+#endif
static const char blame_usage[] = "git-blame [-c] [-l] [-t] [-S <revs-file>] [--] file [commit]\n"
" -c, --compatibility Use the same output mode as git-annotate (Default: off)\n"
util2->num_lines ? util->num_lines : util2->num_lines;
int num;
+ if (print_map == NULL)
+ ; /* to avoid "unused function" warning */
+
for (i = 0; i < max; i++) {
printf("i: %d ", i);
num = -1;
diff --git a/cache-tree.c b/cache-tree.c
index d388848dd25db917e9bac5a8fd95cd89d214f5d8..a80326289dbea2c08acce577cf8eef26a0cfba68 100644 (file)
--- a/cache-tree.c
+++ b/cache-tree.c
#include "tree.h"
#include "cache-tree.h"
+#ifndef DEBUG
#define DEBUG 0
+#endif
struct cache_tree *cache_tree(void)
{