diff options
Diffstat (limited to 'input')
-rw-r--r-- | input/cmd_parse.c | 1 | ||||
-rw-r--r-- | input/ipc-unix.c | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/input/cmd_parse.c b/input/cmd_parse.c index c2c3270e97..01e4bb6411 100644 --- a/input/cmd_parse.c +++ b/input/cmd_parse.c @@ -273,7 +273,6 @@ static struct mp_cmd *parse_cmd_str(struct mp_log *log, void *tmp, break; if (pctx_read_token(ctx, &cur_token) < 0) goto error; - break; } if (!find_cmd(ctx->log, cmd, cur_token)) diff --git a/input/ipc-unix.c b/input/ipc-unix.c index 8b8a158c5f..12d7018c9e 100644 --- a/input/ipc-unix.c +++ b/input/ipc-unix.c @@ -134,7 +134,7 @@ static void *client_thread(void *p) if (fds[0].revents & POLLIN) { char discard[100]; - read(pipe_fd, discard, sizeof(discard)); + (void)read(pipe_fd, discard, sizeof(discard)); while (1) { mpv_event *event = mpv_wait_event(arg->client, 0); @@ -413,7 +413,7 @@ void mp_uninit_ipc(struct mp_ipc_ctx *arg) if (!arg) return; - write(arg->death_pipe[1], &(char){0}, 1); + (void)write(arg->death_pipe[1], &(char){0}, 1); pthread_join(arg->thread, NULL); close(arg->death_pipe[0]); |