mirror of
https://github.com/git/git.git
synced 2026-01-09 01:34:00 +00:00
mark unused parameters in signal handlers
Signal handlers receive their signal number as a parameter, but many don't care what it is (because they only handle one signal, or because their action is the same regardless of the signal). Mark such parameters to silence -Wunused-parameter. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
ce41759ed5
commit
9ec03b59a8
2
daemon.c
2
daemon.c
@@ -928,7 +928,7 @@ static void handle(int incoming, struct sockaddr *addr, socklen_t addrlen)
|
||||
add_child(&cld, addr, addrlen);
|
||||
}
|
||||
|
||||
static void child_handler(int signo)
|
||||
static void child_handler(int signo UNUSED)
|
||||
{
|
||||
/*
|
||||
* Otherwise empty handler because systemcalls will get interrupted
|
||||
|
||||
Reference in New Issue
Block a user