From b652382d761607c76258e2e91fa753dffe5c21dc Mon Sep 17 00:00:00 2001 From: Jeff King Date: Wed, 28 Aug 2024 00:00:16 -0400 Subject: 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 Signed-off-by: Junio C Hamano --- compat/win32/syslog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compat/win32/syslog.c') diff --git a/compat/win32/syslog.c b/compat/win32/syslog.c index 0af18d8882..4e4794743a 100644 --- a/compat/win32/syslog.c +++ b/compat/win32/syslog.c @@ -2,7 +2,7 @@ static HANDLE ms_eventlog; -void openlog(const char *ident, int logopt, int facility) +void openlog(const char *ident, int logopt UNUSED, int facility UNUSED) { if (ms_eventlog) return; -- cgit v1.3-6-g1900