diff options
author | Jeff King <peff@peff.net> | 2023-09-19 01:32:38 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-09-19 01:56:15 +0300 |
commit | 4cb5e0b3b98c70912756551238b91fccf5f09c1e (patch) | |
tree | cb367d61ff50feb788a363aad69cbbed3b829dfb /fsmonitor-ipc.c | |
parent | caf433bbdf5516d6b17420c952795e8debdb2a6f (diff) |
fsmonitor: mark unused parameters in stub functions
The fsmonitor code has some platform-specific functions for which one or
more platforms implement noop or stub functions. We can't get rid of
these functions nor change their interface, since the point is to match
their equivalents in other platforms. But let's annotate their
parameters to quiet the compiler's -Wunused-parameter warning.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'fsmonitor-ipc.c')
-rw-r--r-- | fsmonitor-ipc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fsmonitor-ipc.c b/fsmonitor-ipc.c index 88575aa54c..153918cf76 100644 --- a/fsmonitor-ipc.c +++ b/fsmonitor-ipc.c @@ -20,7 +20,7 @@ int fsmonitor_ipc__is_supported(void) return 0; } -const char *fsmonitor_ipc__get_path(struct repository *r) +const char *fsmonitor_ipc__get_path(struct repository *r UNUSED) { return NULL; } @@ -30,14 +30,14 @@ enum ipc_active_state fsmonitor_ipc__get_state(void) return IPC_STATE__OTHER_ERROR; } -int fsmonitor_ipc__send_query(const char *since_token, - struct strbuf *answer) +int fsmonitor_ipc__send_query(const char *since_token UNUSED, + struct strbuf *answer UNUSED) { return -1; } -int fsmonitor_ipc__send_command(const char *command, - struct strbuf *answer) +int fsmonitor_ipc__send_command(const char *command UNUSED, + struct strbuf *answer UNUSED) { return -1; } |