commit 5eb3fc905f5e3bd2f2d586fb1e0ceda879500b3e from: Omar Polo date: Sat Oct 09 18:54:41 2021 UTC don't work around a missing -Wno-unused-parameter It's been there for a long time, and it's frankly annoying to pretend to use parameters. Most of the time, they're there to satisfy an interface and nothings more. commit - c6bcc919c658676844c857d59388d4108fcc7b8f commit + 5eb3fc905f5e3bd2f2d586fb1e0ceda879500b3e blob - d89026a80f709b253a27880d697b288bf61de822 blob + ad21cd5f4fdd62b6153fbe4dd7bd7471e03b8b61 --- ex.c +++ ex.c @@ -428,10 +428,6 @@ static void handle_imsg_quit(struct imsgbuf *ibuf, struct imsg *imsg, size_t datalen) { int i; - - (void)ibuf; - (void)imsg; - (void)datalen; for (i = 0; i < conf.prefork; ++i) { imsg_compose(&servibuf[i], IMSG_QUIT, 0, 0, -1, NULL, 0); blob - 364f9daa8f3713f9f0941b1f4a7c95341053f927 blob + 5391f038386f96dda8089f79be85e139c196f025 --- sandbox.c +++ sandbox.c @@ -393,9 +393,6 @@ static struct sock_filter filter[] = { static void sandbox_seccomp_violation(int signum, siginfo_t *info, void *ctx) { - (void)signum; - (void)ctx; - fprintf(stderr, "%s: unexpected system call (arch:0x%x,syscall:%d @ %p)\n", __func__, info->si_arch, info->si_syscall, info->si_call_addr); _exit(1); blob - 4f5e4f2d0a2c7a443b18b8faf51543ed71d090e6 blob + 2ad472c3c7e621e7ef25ebff50fcbca79d5df5c1 --- server.c +++ server.c @@ -1280,8 +1280,6 @@ do_accept(int sock, short et, void *d) struct sockaddr *saddr; socklen_t len; int fd; - - (void)et; saddr = (struct sockaddr*)&addr; len = sizeof(addr); @@ -1385,9 +1383,6 @@ handle_imsg_fcgi_fd(struct imsgbuf *ibuf, struct imsg static void handle_imsg_quit(struct imsgbuf *ibuf, struct imsg *imsg, size_t len) { - (void)imsg; - (void)len; - /* * don't call event_loopbreak since we want to finish to * handle the ongoing connections. @@ -1414,10 +1409,6 @@ handle_dispatch_imsg(int fd, short ev, void *d) static void handle_siginfo(int fd, short ev, void *d) { - (void)fd; - (void)ev; - (void)d; - log_info(NULL, "%d connected clients", connected_clients); }