Skip to content
Snippets Groups Projects
Commit 8c9e4f68 authored by Fred Wright's avatar Fred Wright Committed by Christopher Nielsen
Browse files

test_arc4random: Fix warning.

The result of a function being tested is discarded, which produces a
"set but not used" warning from some compilers.  We add a void cast to
avoid this.

TESTED:
Previously present warnings are now gone.
parent c8612c60
Branches
No related tags found
No related merge requests found
......@@ -64,7 +64,7 @@ bench(int fd, size_t siz, size_t niter)
s0 = sys_cpu_timestamp();
arc4random_buf(buf, siz);
s1 = sys_cpu_timestamp();
m = read(fd, buf, siz);
m = read(fd, buf, siz); (void) m;
s2 = sys_cpu_timestamp();
ta += s1 - s0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment