Skip to content

Commit 890e017

Browse files
authored
Merge pull request #288 from compnerd/test-noasserts
test: avoid -Wunused-variable on NoAsserts build
2 parents 291f34d + 690f8fc commit 890e017

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/bsdtestharness.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ main(int argc, char *argv[])
128128
tv_wall.tv_usec = labs(tv_stop.tv_usec - tv_start.tv_usec);
129129

130130
int res2 = wait4(pid, &status, 0, &usage);
131+
(void)res2;
131132
assert(res2 != -1);
132133
test_long("Process exited", (WIFEXITED(status) && WEXITSTATUS(status) && WEXITSTATUS(status) != 0xff) || WIFSIGNALED(status), 0);
133134
printf("[PERF]\twall time: %ld.%06ld\n", tv_wall.tv_sec, tv_wall.tv_usec);

0 commit comments

Comments
 (0)