Commit 803ca5cb by Kirill A. Shutemov Committed by Vicent Marti

revwalk: fix cast warning

/home/kas/git/public/libgit2/src/revwalk.c: In function ‘object_table_hash’:
/home/kas/git/public/libgit2/src/revwalk.c:120:7: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]

Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
parent ba1de1af
......@@ -115,9 +115,8 @@ static int commit_time_cmp(void *a, void *b)
static uint32_t object_table_hash(const void *key, int hash_id)
{
uint32_t r;
git_oid *id;
const git_oid *id = key;
id = (git_oid *)key;
memcpy(&r, id->id + (hash_id * sizeof(uint32_t)), sizeof(r));
return r;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment