git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Warning fix in diff.c

From
YYYoichi Yuasa <yuasa@hh.iij4u.or.jp>
Date
Jun 14, 2005, 14:57 UTC
Message-ID
<20050614235750.3156fd24.yuasa@hh.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;
 
Message 1 of 1 in “Warning fix in diff.c”
  1. Warning fix in diff.cYoichi Yuasa, Jun 14, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.