From 1302ab83ab32b64f637372c9cb5c7ee070572f64 Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Mon, 1 May 2023 18:22:46 -0500 Subject: [PATCH] cleanup: warnings of unused return values --- shared/include/bh.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.25.1