Skip to content

Commit

Permalink
tests: libucontext_posix: quiet compiler warning on glibc
Browse files Browse the repository at this point in the history
  • Loading branch information
kaniini committed Aug 8, 2024
1 parent 1a2dff9 commit 5445f70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_libucontext_posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ int main (int argc, const char *argv[]) {
ctx[1].uc_stack.ss_sp = st1;
ctx[1].uc_stack.ss_size = sizeof st1;
ctx[1].uc_link = &ctx[0];
makecontext(&ctx[1], f1, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
makecontext(&ctx[1], (void *) f1, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10);


printf("setting up context 2\n");
Expand All @@ -82,7 +82,7 @@ int main (int argc, const char *argv[]) {
ctx[2].uc_stack.ss_sp = st2;
ctx[2].uc_stack.ss_size = sizeof st2;
ctx[2].uc_link = &ctx[1];
makecontext(&ctx[2], f2, 0);
makecontext(&ctx[2], (void *) f2, 0);


printf("doing initial swapcontext\n");
Expand Down

0 comments on commit 5445f70

Please sign in to comment.