In particular, sparse issues a warning about the declaration
of git_index__parse_tree(). However, I suspect that, at some
point, the git_index__parse_treecache() function (which does
not have a definition) was renamed and the declaration was
missed. In order to suppress this warning, we simply change
the name of the function in the declaration from git_index\
__parse_treecache() to git_index__parse_tree().
Signed-off-by: Ramsay Jones <[email protected]>
@@ -91,7 +91,7 @@ struct entry_long {
/* local declarations */
size_t git_index__parse_extension(git_index *index, const char *buffer, size_t buffer_size);
size_t git_index__parse_entry(git_index_entry *dest, const void *buffer, size_t buffer_size);
-int git_index__parse_treecache(git_index *index, const char *buffer, size_t buffer_size);
+int git_index__parse_tree(git_index *index, const char *buffer, size_t buffer_size);
int git_index__parse_header(struct index_header *dest, const void *buffer);
int git_index__parse(git_index *index, const char *buffer, size_t buffer_size);