Skip to content

Commit 0b1376d

Browse files
peffgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e2ef77c commit 0b1376d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

daemon.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,13 +1175,13 @@ static int service_loop(struct socketlist *socklist)
11751175

11761176
struct credentials;
11771177

1178-
static void drop_privileges(struct credentials *cred)
1178+
static void drop_privileges(struct credentials *cred UNUSED)
11791179
{
11801180
/* nothing */
11811181
}
11821182

1183-
static struct credentials *prepare_credentials(const char *user_name,
1184-
const char *group_name)
1183+
static struct credentials *prepare_credentials(const char *user_name UNUSED,
1184+
const char *group_name UNUSED)
11851185
{
11861186
die("--user not supported on this platform");
11871187
}

0 commit comments

Comments
 (0)