Declare unused parameters

When building with global CFLAGS=-Wunused-parameter the output from the
build looks terrible.  This commit explicitly declares unused variables
to prevent triggering -Wunused-parameter

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2025-07-02 14:29:52 +02:00
parent 5e2e273cad
commit ffd00f646c
10 changed files with 55 additions and 0 deletions
+12
View File
@@ -59,6 +59,8 @@ static int call(int (*action)(svc_t *, void *), char *buf, size_t len)
static int stop(svc_t *svc, void *user_data)
{
(void)user_data;
if (!svc)
return 1;
@@ -72,6 +74,8 @@ static int stop(svc_t *svc, void *user_data)
static int start(svc_t *svc, void *user_data)
{
(void)user_data;
if (!svc)
return 1;
@@ -105,6 +109,8 @@ static int restart(svc_t *svc, void *user_data)
static int reload(svc_t *svc, void *user_data)
{
(void)user_data;
if (!svc)
return 1;
@@ -149,6 +155,8 @@ static int missing(char *job, char *id, void *user_data)
{
char buf[20];
(void)user_data;
if (!job)
job = "";
if (!id)
@@ -228,6 +236,8 @@ struct wq emergency = { .cb = bypass_shutdown };
static void bypass_shutdown(void *unused)
{
(void)unused;
cprintf("TIMEOUT TIMEOUT SHUTTING DOWN NOW!!\n");
do_shutdown(halt);
}
@@ -332,6 +342,8 @@ static void api_cb(uev_t *w, void *arg, int events)
int sd, lvl;
svc_t *svc;
(void)arg;
if (UEV_ERROR == events) {
dbg("%s(): api socket %d invalid.", __func__, w->fd);
goto error;