Skip to content

Commit b74d779

Browse files
dschogitster
authored andcommitted
MinGW: Fix compiler warning in merge-recursive
GCC 4.4.0 on Windows does not like the format %zu. It is quite unlikely, though, that we need more merge bases than a %d can display, so replace the %zu by a %d. Signed-off-by: Johannes Schindelin <[email protected]> Signed-off-by: Steffen Prohaska <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0dbbbc1 commit b74d779

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

builtin-merge-recursive.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ int cmd_merge_recursive(int argc, const char **argv, const char *prefix)
4545
bases[bases_count++] = sha;
4646
}
4747
else
48-
warning("Cannot handle more than %zu bases. "
49-
"Ignoring %s.", ARRAY_SIZE(bases)-1, argv[i]);
48+
warning("Cannot handle more than %d bases. "
49+
"Ignoring %s.",
50+
(int)ARRAY_SIZE(bases)-1, argv[i]);
5051
}
5152
if (argc - i != 3) /* "--" "<head>" "<remote>" */
5253
die("Not handling anything other than two heads merge.");

0 commit comments

Comments
 (0)