From 5445f701576e6984639489b51ec76d7ee355f0fe Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Wed, 7 Aug 2024 17:57:16 -0700 Subject: [PATCH] tests: libucontext_posix: quiet compiler warning on glibc --- test_libucontext_posix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_libucontext_posix.c b/test_libucontext_posix.c index c9abadc..7a668fc 100644 --- a/test_libucontext_posix.c +++ b/test_libucontext_posix.c @@ -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"); @@ -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");