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

[PATCH] repository.c: fix sparse warning

From
Ramsay Jones <ramsay@ramsayjones.plus.com>
Date
Jan 17, 2019, 01:07 UTC
Message-ID
<419519f9-1b48-93bb-eead-eacf6b383f70@ramsayjones.plus.com>
Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
---
Hi Duy,

If you need to re-roll your 'nd/the-index-final' branch, could you please squash this into the relevant patch (commit 4478671442, "cache.h: flip NO_THE_INDEX_COMPATIBILITY_MACROS switch", 2019-01-12).

[the warning is caused by the lack of the extern declaration of the 'the_index' symbol.]

Thanks!

ATB, Ramsay Jones

 repository.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/repository.c b/repository.c
index 0c6814627e..3ecbb1b6e3 100644
--- a/repository.c
+++ b/repository.c
@@ -1,3 +1,4 @@
+#define USE_THE_INDEX_COMPATIBILITY_MACROS
 #include "cache.h"
 #include "repository.h"
 #include "object-store.h"
-- 
2.20.0
Next: Duy Nguyen
Message 1 of 3 in “repository.c: fix sparse warning”
  1. repository.c: fix sparse warningRamsay Jones, Jan 17, 2019
  2. Duy NguyenJan 17, 2019
  3. Ramsay JonesJan 17, 2019

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.