]> git.ipfire.org Git - thirdparty/git.git/commitdiff
fsmonitor/win32: mark unused parameter in fsm_os__incompatible()
authorJeff King <peff@peff.net>
Mon, 18 Sep 2023 22:32:05 +0000 (18:32 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 18 Sep 2023 22:56:15 +0000 (15:56 -0700)
We never look at the "ipc" argument we receive. It was added in
8f44976882 (fsmonitor: avoid socket location check if using hook,
2022-10-04) to support the darwin fsmonitor code. The win32 code has to
match the same interface, but we should use an annotation to silence
-Wunused-parameter.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/fsmonitor/fsm-settings-win32.c

index b6f67444944b5ff60ed3823dc64fc10d36f2a778..0f2aa321f6e15f729aef67d4012fea6513cacfa4 100644 (file)
@@ -25,7 +25,7 @@ static enum fsmonitor_reason check_vfs4git(struct repository *r)
        return FSMONITOR_REASON_OK;
 }
 
-enum fsmonitor_reason fsm_os__incompatible(struct repository *r, int ipc)
+enum fsmonitor_reason fsm_os__incompatible(struct repository *r, int ipc UNUSED)
 {
        enum fsmonitor_reason reason;