Skip to content

Fix unused variable errors #576

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions tests/bsdtestharness.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,6 @@ main(int argc, char *argv[])
assert(res == 0);
#endif

uint64_t to = 0;
char *tos = getenv("BSDTEST_TIMEOUT");
if (tos) {
to = strtoul(tos, NULL, 0);
to *= NSEC_PER_SEC;
}

#ifdef __APPLE__
char *arch = getenv("BSDTEST_ARCH");
if (arch) {
Expand Down Expand Up @@ -245,6 +238,13 @@ main(int argc, char *argv[])
});
dispatch_resume(tmp_ds);

uint64_t to = 0;
char *tos = getenv("BSDTEST_TIMEOUT");
if (tos) {
to = strtoul(tos, NULL, 0);
to *= NSEC_PER_SEC;
}

if (!to) {
#if TARGET_OS_EMBEDDED
to = 180LL * NSEC_PER_SEC;
Expand Down
1 change: 1 addition & 0 deletions tests/dispatch_apply.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ static void busythread(void *ignored)
j += i;
i += 1;
}
(void)j;

OSAtomicIncrement32(&busy_threads_finished);
}
Expand Down