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:
Yusuke Endoh 2025-12-24 17:53:35 +09:00
parent df1c9a06ac
commit 2d0d95305c
Notes: git 2025-12-24 12:10:00 +00:00

View File

@ -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.