[PATCH 2/2] Actually use retval

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is most likely a bug. Nocited by gcc 4.6.0.

Signed-off-by: Johannes Schindelin <johannes.schindelin@xxxxxx>
---

	Alternatively, retval's declaration and assignment can go.

 tree-diff.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tree-diff.c b/tree-diff.c
index 3954281..9e2dc70 100644
--- a/tree-diff.c
+++ b/tree-diff.c
@@ -58,7 +58,7 @@ static int compare_tree_entry(struct tree_desc *t1, struct tree_desc *t2,
 		opt->change(opt, mode1, mode2, sha1, sha2, base->buf, 0, 0);
 	}
 	strbuf_setlen(base, old_baselen);
-	return 0;
+	return retval;
 }
 
 /* A whole sub-tree went away or appeared */
-- 
1.7.4.msysgit.0.167.ge91fd
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]