Commit 3db4ae72 authored by Daniel Salzman's avatar Daniel Salzman

fdset-test: improve unused warning fix (Clang)

parent 6b8c0576
......@@ -83,9 +83,9 @@ void* thr_action(void *arg)
/* Write pattern. */
char pattern = WRITE_PATTERN;
/* If removes compile warning. */
if (write(*fd, &pattern, WRITE_PATTERN_LEN))
;
if (write(*fd, &pattern, WRITE_PATTERN_LEN) == -1) {
// Error.
}
return NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment