projects
/
onyx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d23cc4
)
cleanup: warnings of unused return values
author
Brendan Hansen
<brendan.f.hansen@gmail.com>
Mon, 1 May 2023 23:22:46 +0000
(18:22 -0500)
committer
Brendan Hansen
<brendan.f.hansen@gmail.com>
Mon, 1 May 2023 23:22:46 +0000
(18:22 -0500)
shared/include/bh.h
patch
|
blob
|
history
diff --git
a/shared/include/bh.h
b/shared/include/bh.h
index 10300d9643816371e4a0c3ca0ee7b50e7daf1559..1e0be390169da198e9fd6a7a43edd11430e09d28 100644
(file)
--- 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