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
+4
View File
@@ -164,6 +164,8 @@ static void devmon_scandir(struct iwatch *iw, char *dir, int len)
size_t i;
int rc;
(void)iw;
snprintf(path, sizeof(path), "%s/*", dir);
rc = glob(path, GLOB_NOSORT, NULL, &gl);
if (rc && rc != GLOB_NOMATCH)
@@ -207,6 +209,8 @@ static void devmon_cb(uev_t *w, void *arg, int events)
ssize_t sz;
size_t off;
(void)arg;
sz = read(w->fd, ev_buf, sizeof(ev_buf) - 1);
if (sz <= 0) {
err(1, "invalid inotify event");