compat: mark unused parameters in win32/mingw functions
The compat/ directory contains many stub functions, wrappers, and so on that have to conform to a specific interface, but don't necessarily need to use all of their parameters. Let's mark them to avoid complaints from -Wunused-parameter. This was done mostly via guess-and-check with the Windows build in GitHub CI. I also confirmed that the win+VS build is similarly happy. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
141491840d
commit
b652382d76
@ -40,7 +40,7 @@ void *git_mmap(void *start, size_t length, int prot, int flags, int fd, off_t of
|
||||
return MAP_FAILED;
|
||||
}
|
||||
|
||||
int git_munmap(void *start, size_t length)
|
||||
int git_munmap(void *start, size_t length UNUSED)
|
||||
{
|
||||
return !UnmapViewOfFile(start);
|
||||
}
|
||||
|
Reference in New Issue
Block a user