Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-10-31 02:29:53 +0300
committerJunio C Hamano <junkio@cox.net>2006-10-31 02:29:53 +0300
commit4903161fb8c74bc583b21d7ffe7abaf223df4253 (patch)
tree7aafe696d1b1a04d94d4c62a521c41d0d3e15e0f /blame.c
parentd6b7e0b98f8d0f84e3b2614b33b52402fefb5735 (diff)
Surround "#define DEBUG 0" with "#ifndef DEBUG..#endif"
Otherwise "make CFLAGS=-DDEBUG=1" is cumbersome to run. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'blame.c')
-rw-r--r--blame.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/blame.c b/blame.c
index 8cfd5d94c77..3e227d27124 100644
--- a/blame.c
+++ b/blame.c
@@ -18,7 +18,9 @@
#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"
@@ -232,6 +234,9 @@ static void print_map(struct commit *cmit, struct commit *other)
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;