# [PATCH] Warning fix in diff.c

1 messages from 2005-06-14 to 2005-06-14. Participants: Yoichi Yuasa.
Thread: https://gitlist.dev/t/937

## Yoichi Yuasa, 2005-06-14 14:57

Subject: [PATCH] Warning fix in diff.c
Message-ID: <20050614235750.3156fd24.yuasa@hh.iij4u.or.jp>
URL: https://gitlist.dev/e/20050614235750.3156fd24.yuasa%40hh.iij4u.or.jp

```
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>

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;
 

```
