git-cvsserver: read from git with -z to get non-ASCII pathnames.
[gitweb.git] / blame.c
diff --git a/blame.c b/blame.c
index 8cfd5d94c777770a2019e058f1140ecd5a5c9aa2..3e227d27124ff3eb09409a781c532de5bfc52369 100644 (file)
--- 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;