cleanup: warnings of unused return values
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Mon, 1 May 2023 23:22:46 +0000 (18:22 -0500)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Mon, 1 May 2023 23:22:46 +0000 (18:22 -0500)
shared/include/bh.h

index 10300d9643816371e4a0c3ca0ee7b50e7daf1559..1e0be390169da198e9fd6a7a43edd11430e09d28 100644 (file)
@@ -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