Skip to content

Commit

Permalink
Merge pull request #576 from etcwilde/ewilde/rebranch/fix-unused-vari…
Browse files Browse the repository at this point in the history
…able-errors

Fix unused variable errors
  • Loading branch information
etcwilde authored Sep 22, 2021
2 parents 04daebe + 767ce40 commit 35f5c96
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
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

0 comments on commit 35f5c96

Please sign in to comment.