{"thread":{"id":"937","subject":"[PATCH] Warning fix in diff.c","startedAt":"2005-06-14T14:57:50Z","lastAt":"2005-06-14T14:57:50Z","messageCount":1,"participants":["Yoichi Yuasa"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"4948","messageId":"20050614235750.3156fd24.yuasa@hh.iij4u.or.jp","threadId":"937","inReplyTo":null,"subject":"[PATCH] Warning fix in diff.c","fromName":"Yoichi Yuasa","fromEmail":"yuasa@hh.iij4u.or.jp","sentAt":"2005-06-14T14:57:50Z","receivedAt":"2005-06-14T14:57:50Z","isPatch":true,"sender":{"key":"yuasa@hh.iij4u.or.jp","avatar":null},"body":"This patch had fixed the following warning.\nPlease apply.\n\ncc -g -O2 -Wall  '-DSHA1_HEADER=\"mozilla-sha1/sha1.h\"'   -c -o diff.o diff.c\ndiff.c: In function `parse_num':\ndiff.c:606: warning: value computed is not used\n\nSigned-off-by: Yoichi Yuasa <yuasa@hh.iij4u.or.jp>\n\ndiff --git a/diff.c b/diff.c\n--- a/diff.c\n+++ b/diff.c\n@@ -603,7 +603,7 @@ static int parse_num(const char **cp_p)\n \t\t\tscale *= 10;\n \t\t\tnum = num * 10 + ch - '0';\n \t\t}\n-\t\t*cp++;\n+\t\tcp++;\n \t}\n \t*cp_p = cp;\n \n"}]}