mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
ext/-test-/scheduler/scheduler.c: explicitly ignore the result of write
```
scheduler.c:44:5: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
44 | write(blocking_state->notify_descriptor, "x", 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
This commit is contained in:
parent
df1c9a06ac
commit
2d0d95305c
Notes:
git
2025-12-24 12:10:00 +00:00
@ -41,7 +41,8 @@ blocking_operation(void *argument)
|
||||
{
|
||||
struct blocking_state *blocking_state = (struct blocking_state *)argument;
|
||||
|
||||
write(blocking_state->notify_descriptor, "x", 1);
|
||||
ssize_t ret = write(blocking_state->notify_descriptor, "x", 1);
|
||||
(void)ret; // ignore the result for now
|
||||
|
||||
while (!blocking_state->interrupted) {
|
||||
struct timeval tv = {1, 0}; // 1 second timeout.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user