aboutsummaryrefslogtreecommitdiffstats
path: root/compat/win32/pthread.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2024-08-28 00:00:16 -0400
committerJunio C Hamano <gitster@pobox.com>2024-08-28 09:51:18 -0700
commitb652382d761607c76258e2e91fa753dffe5c21dc (patch)
tree5cf6da87b6c972a7a114b3b691e042edea65435d /compat/win32/pthread.c
parentcompat: disable -Wunused-parameter in win32/headless.c (diff)
downloadgit-b652382d761607c76258e2e91fa753dffe5c21dc.tar.gz
git-b652382d761607c76258e2e91fa753dffe5c21dc.zip
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/win32/pthread.c')
-rw-r--r--compat/win32/pthread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/win32/pthread.c b/compat/win32/pthread.c
index 85f8f7920c..58980a529c 100644
--- a/compat/win32/pthread.c
+++ b/compat/win32/pthread.c
@@ -21,7 +21,7 @@ static unsigned __stdcall win32_start_routine(void *arg)
return 0;
}
-int pthread_create(pthread_t *thread, const void *unused,
+int pthread_create(pthread_t *thread, const void *attr UNUSED,
void *(*start_routine)(void *), void *arg)
{
thread->arg = arg;