diff options
| author | Jeff King <peff@peff.net> | 2024-08-28 00:00:16 -0400 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-08-28 09:51:18 -0700 |
| commit | b652382d761607c76258e2e91fa753dffe5c21dc (patch) | |
| tree | 5cf6da87b6c972a7a114b3b691e042edea65435d /compat/win32mmap.c | |
| parent | 141491840d4efb0a24430eea6815dc8164786820 (diff) | |
| download | git-b652382d761607c76258e2e91fa753dffe5c21dc.tar.gz | |
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>
Diffstat (limited to 'compat/win32mmap.c')
| -rw-r--r-- | compat/win32mmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/win32mmap.c b/compat/win32mmap.c index 519d51f2b6..a4ab4cb939 100644 --- a/compat/win32mmap.c +++ b/compat/win32mmap.c @@ -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); } |
