diff options
author | Jeff King <peff@peff.net> | 2023-02-24 07:39:20 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-02-24 18:13:30 +0100 |
commit | 9ec03b59a8c4f5a0b4e666bd179a8eed71484825 (patch) | |
tree | 845f6b8c7ae7486c6c1d934c6e841bc492d773e2 /daemon.c | |
parent | run-command: mark error routine parameters as unused (diff) | |
download | git-9ec03b59a8c4f5a0b4e666bd179a8eed71484825.tar.xz git-9ec03b59a8c4f5a0b4e666bd179a8eed71484825.zip |
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>
Diffstat (limited to 'daemon.c')
-rw-r--r-- | daemon.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |