mirror of
https://github.com/troglobit/finit.git
synced 2026-10-08 16:34:45 +07:00
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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user