]> git.ipfire.org Git - thirdparty/git.git/commit
compat/mmap: mark unused argument in git_munmap()
authorJeff King <peff@peff.net>
Tue, 18 Nov 2025 09:11:56 +0000 (04:11 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Nov 2025 17:36:05 +0000 (09:36 -0800)
commit65e8141f051401a101567b95860424d94f42ef39
tree6bfd65ef4b597a97ae394e2c3669d92df6965559
parentf368df439b31b422169975cc3c95f7db6a46eada
compat/mmap: mark unused argument in git_munmap()

Our mmap compat code emulates mapping by using malloc/free. Our
git_munmap() must take a "length" parameter to match the interface of
munmap(), but we don't use it (it is up to the allocator to know how big
the block is in free()).

Let's mark it as UNUSED to avoid complaints from -Wunused-parameter.
Otherwise you cannot build with "make DEVELOPER=1 NO_MMAP=1".

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/mmap.c