summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7109c88)
raw | patch | inline | side by side (parent: 7109c88)
author | Junio C Hamano <gitster@pobox.com> | |
Mon, 29 Oct 2007 19:00:55 +0000 (12:00 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 29 Oct 2007 19:00:55 +0000 (12:00 -0700) |
The called function merge_trees() sets its *result, to which the
address of the variable mrtree in merge() function is passed,
only when index_only is set. But that is Ok as the function
uses the value in the variable only under index_only iteration.
However, recent gcc does not realize this. Work it around by
adding a fake initializer.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
address of the variable mrtree in merge() function is passed,
only when index_only is set. But that is Ok as the function
uses the value in the variable only under index_only iteration.
However, recent gcc does not realize this. Work it around by
adding a fake initializer.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
merge-recursive.c | patch | blob | history |
diff --git a/merge-recursive.c b/merge-recursive.c
index 19d5f3b2872ec7039508c9b12a89f3013d58c68d..c2e1cb69e3e25ccb1851273ee4ee3a06e795dd37 100644 (file)
--- a/merge-recursive.c
+++ b/merge-recursive.c
{
struct commit_list *iter;
struct commit *merged_common_ancestors;
- struct tree *mrtree;
+ struct tree *mrtree = mrtree;
int clean;
if (show(4)) {