diff options
Diffstat (limited to 'player')
-rw-r--r-- | player/client.c | 4 | ||||
-rw-r--r-- | player/playloop.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/player/client.c b/player/client.c index 45bd2297ba..f5a321b41d 100644 --- a/player/client.c +++ b/player/client.c @@ -280,7 +280,7 @@ static void wakeup_client(struct mpv_handle *ctx) if (ctx->wakeup_cb) ctx->wakeup_cb(ctx->wakeup_cb_ctx); if (ctx->wakeup_pipe[0] != -1) - write(ctx->wakeup_pipe[1], &(char){0}, 1); + (void)write(ctx->wakeup_pipe[1], &(char){0}, 1); } pthread_mutex_unlock(&ctx->wakeup_lock); } @@ -1559,7 +1559,7 @@ int mpv_get_wakeup_pipe(mpv_handle *ctx) pthread_mutex_lock(&ctx->wakeup_lock); if (ctx->wakeup_pipe[0] == -1) { if (mp_make_wakeup_pipe(ctx->wakeup_pipe) >= 0) - write(ctx->wakeup_pipe[1], &(char){0}, 1); + (void)write(ctx->wakeup_pipe[1], &(char){0}, 1); } int fd = ctx->wakeup_pipe[0]; pthread_mutex_unlock(&ctx->wakeup_lock); diff --git a/player/playloop.c b/player/playloop.c index 4e6910fc31..56701dbc34 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -612,7 +612,7 @@ static void handle_heartbeat_cmd(struct MPContext *mpctx) double now = mp_time_sec(); if (mpctx->next_heartbeat <= now) { mpctx->next_heartbeat = now + opts->heartbeat_interval; - system(opts->heartbeat_cmd); + (void)system(opts->heartbeat_cmd); } mpctx->sleeptime = MPMIN(mpctx->sleeptime, mpctx->next_heartbeat - now); } |