Skip to content

Commit 997eb91

Browse files
peffgitster
authored andcommitted
fsmonitor/darwin: mark unused parameters in system callback
We pass fsevent_callback() to the system FSEventStreamCreate() function as a callback. So we must match the expected function signature, even though we don't care about all of the parameters. Mark the unused ones to satisfy -Wunused-parameter. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4cb5e0b commit 997eb91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compat/fsmonitor/fsm-listen-darwin.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,12 +191,12 @@ static void my_add_path(struct fsmonitor_batch *batch, const char *path)
191191
}
192192

193193

194-
static void fsevent_callback(ConstFSEventStreamRef streamRef,
194+
static void fsevent_callback(ConstFSEventStreamRef streamRef UNUSED,
195195
void *ctx,
196196
size_t num_of_events,
197197
void *event_paths,
198198
const FSEventStreamEventFlags event_flags[],
199-
const FSEventStreamEventId event_ids[])
199+
const FSEventStreamEventId event_ids[] UNUSED)
200200
{
201201
struct fsmonitor_daemon_state *state = ctx;
202202
struct fsm_listen_data *data = state->listen_data;

0 commit comments

Comments
 (0)