diff options
author | Jeff King <peff@peff.net> | 2024-08-17 10:25:32 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-08-17 18:46:24 +0200 |
commit | 0b1376d44866e6eae25523d8f1188495dab42ee8 (patch) | |
tree | 2f4cd26363e1c0360b063e773173f9017d789fe7 /daemon.c | |
parent | setup: mark unused parameter in config callback (diff) | |
download | git-0b1376d44866e6eae25523d8f1188495dab42ee8.tar.xz git-0b1376d44866e6eae25523d8f1188495dab42ee8.zip |
daemon: mark unused parameters in non-posix fallbacks
If NO_POSIX_GOODIES is set, we compile fallback versions of a few
functions. These don't do anything, so their parameters are unused, but
we must keep them to match the ones on the other side of the #ifdef.
Mark them to quiet -Wunused-parameter.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rw-r--r-- | daemon.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1175,13 +1175,13 @@ static int service_loop(struct socketlist *socklist) struct credentials; -static void drop_privileges(struct credentials *cred) +static void drop_privileges(struct credentials *cred UNUSED) { /* nothing */ } -static struct credentials *prepare_credentials(const char *user_name, - const char *group_name) +static struct credentials *prepare_credentials(const char *user_name UNUSED, + const char *group_name UNUSED) { die("--user not supported on this platform"); } |