From: Brendan Hansen Date: Mon, 1 May 2023 23:22:46 +0000 (-0500) Subject: cleanup: warnings of unused return values X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=1302ab83ab32b64f637372c9cb5c7ee070572f64;p=onyx.git cleanup: warnings of unused return values --- diff --git a/shared/include/bh.h b/shared/include/bh.h index 10300d96..1e0be390 100644 --- a/shared/include/bh.h +++ b/shared/include/bh.h @@ -2146,7 +2146,7 @@ b32 bh_file_watch_wait(bh_file_watch *w) { if (FD_ISSET(w->kill_pipe[0], &w->fds)) { char buf; - read(w->kill_pipe[0], &buf, sizeof(buf)); + (void) read(w->kill_pipe[0], &buf, sizeof(buf)); return 0; } @@ -2159,7 +2159,7 @@ b32 bh_file_watch_wait(bh_file_watch *w) { void bh_file_watch_stop(bh_file_watch *w) { char buf = 'a'; - write(w->kill_pipe[1], &buf, 1); + (void) write(w->kill_pipe[1], &buf, 1); } #endif // ifdef _BH_LINUX