summaryrefslogtreecommitdiffstats
path: root/compat/stub
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2024-08-28 06:00:16 +0200
committerJunio C Hamano <gitster@pobox.com>2024-08-28 18:51:18 +0200
commitb652382d761607c76258e2e91fa753dffe5c21dc (patch)
tree5cf6da87b6c972a7a114b3b691e042edea65435d /compat/stub
parentcompat: disable -Wunused-parameter in win32/headless.c (diff)
downloadgit-b652382d761607c76258e2e91fa753dffe5c21dc.tar.xz
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/stub')
-rw-r--r--compat/stub/procinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/stub/procinfo.c b/compat/stub/procinfo.c
index 12c0a23c9e..3168cd5714 100644
--- a/compat/stub/procinfo.c
+++ b/compat/stub/procinfo.c
@@ -6,6 +6,6 @@
* Stub. See sample implementations in compat/linux/procinfo.c and
* compat/win32/trace2_win32_process_info.c.
*/
-void trace2_collect_process_info(enum trace2_process_info_reason reason)
+void trace2_collect_process_info(enum trace2_process_info_reason reason UNUSED)
{
}