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

[PATCH] Fix a warning (on cygwin) to allow -Werror

From
Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Date
Aug 26, 2008, 17:50 UTC
Message-ID
<48B4426D.3090801@ramsay1.demon.co.uk>
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
---
Noticed while building 1.6.0 from the release tar-ball.

Also, I noticed that git_ntohl() is still defined in compat/mingw.h; is this still required? It's not a problem, just curious! (I don't have mingw installed, so I can't test myself)

ATB,
Ramsay Jones
 builtin-fast-export.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/builtin-fast-export.c b/builtin-fast-export.c
index 0709716..7c93eb8 100644
--- a/builtin-fast-export.c
+++ b/builtin-fast-export.c
@@ -417,7 +417,8 @@ static void export_marks(char *file)
 	for (i = 0; i < idnums.size; i++) {
 		if (deco->base && deco->base->type == 1) {
 			mark = ptr_to_mark(deco->decoration);
-			fprintf(f, ":%u %s\n", mark, sha1_to_hex(deco->base->sha1));
+			fprintf(f, ":%"PRIu32" %s\n", mark,
+				sha1_to_hex(deco->base->sha1));
 		}
 		deco++;
 	}
-- 
1.6.0
Next: Johannes Sixt
Message 1 of 4 in “Fix a warning (on cygwin) to allow -Werror”
  1. Fix a warning (on cygwin) to allow -WerrorRamsay Jones, Aug 26, 2008
  2. Johannes SixtAug 27, 2008
  3. Ramsay JonesAug 28, 2008
  4. Johannes SixtAug 29, 2008

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.