threads / patch / 937

patchWarning fix in diff.c

Subject: [PATCH] Warning fix in diff.c

## tl;dr

One message between Jun 14, 2005 and Jun 14, 2005. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Yoichi Yuasa· Jun 14, 2005, 14:57 UTC · lore

This patch had fixed the following warning. Please apply.

cc -g -O2 -Wall '-DSHA1_HEADER="mozilla-sha1/sha1.h"' -c -o diff.o diff.c diff.c: In function `parse_num': diff.c:606: warning: value computed is not used

Signed-off-by: Yoichi Yuasa <yuasa@hh.iij4u.or.jp>
Show changes to diff.c +1 −1
diff --git a/diff.c b/diff.c
--- a/diff.c
+++ b/diff.c
@@ -603,7 +603,7 @@ static int parse_num(const char **cp_p)
 			scale *= 10;
 			num = num * 10 + ch - '0';
 		}
-		*cp++;
+		cp++;
 	}
 	*cp_p = cp;
 

← back to recent threads