diff --git a/osdep/subprocess-posix.c b/osdep/subprocess-posix.c index 013ca143ed..2d81b9a10f 100644 --- a/osdep/subprocess-posix.c +++ b/osdep/subprocess-posix.c @@ -134,7 +134,7 @@ static pid_t spawn_process(const char *path, struct mp_subprocess_opts *opts, as_execvpe(path, opts->exe, opts->args, opts->env ? opts->env : environ); child_failed: - write(p[1], &(char){1}, 1); // shouldn't be able to fail + (void)write(p[1], &(char){1}, 1); // shouldn't be able to fail _exit(1); } diff --git a/osdep/terminal-unix.c b/osdep/terminal-unix.c index 99073d90e2..d31e1e753f 100644 --- a/osdep/terminal-unix.c +++ b/osdep/terminal-unix.c @@ -435,7 +435,7 @@ static void *terminal_thread(void *ptr) } if (fds[1].revents & POLLIN) { int8_t c = -1; - read(stop_cont_pipe[0], &c, 1); + (void)read(stop_cont_pipe[0], &c, 1); if (c == PIPE_STOP) do_deactivate_getch2(); else if (c == PIPE_CONT)