Skip to content
Snippets Groups Projects
Commit 3db4ae72 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

fdset-test: improve unused warning fix (Clang)

parent 6b8c0576
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment