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

[RFC][PATCH 10/10] Sparse: fix a "symbol 'weak_match' shadows an earlier one" warning

From
Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Date
Jun 8, 2007, 22:27 UTC
Message-ID
<4669D7BC.3060607@ramsay1.demon.co.uk>
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
---
 connect.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/connect.c b/connect.c
index da89c9c..d4051dd 100644
--- a/connect.c
+++ b/connect.c
@@ -179,7 +179,6 @@ static int count_refspec_match(const char *pattern,
 	for (weak_match = match = 0; refs; refs = refs->next) {
 		char *name = refs->name;
 		int namelen = strlen(name);
-		int weak_match;
 
 		if (namelen < patlen ||
 		    memcmp(name + namelen - patlen, pattern, patlen))
-- 
1.5.2
Next: Junio C Hamano
Message 1 of 3 in “Sparse: fix a "symbol 'weak_match' shadows an earlier one" warning”
  1. Ramsay JonesJun 8, 2007
  2. Junio C HamanoJun 9, 2007
  3. Ramsay JonesJun 12, 2007

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.