From 5486cd4dce45b0ff984bdcd94a2e07cde09eef77 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Wed, 6 May 2020 15:57:31 +0200 Subject: [PATCH] :art: Remove unused variable in signature --- include/object.h | 2 +- src/lib/shred.c | 2 +- src/vm/vm.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/object.h b/include/object.h index dfad90a5..e199b54b 100644 --- a/include/object.h +++ b/include/object.h @@ -17,7 +17,7 @@ ANN ANEW M_Object new_array(MemPool, const Type t, const m_uint length); ANEW M_Object new_string(MemPool, const VM_Shred, const m_str); ANEW M_Object new_string2(const struct Gwion_*, const VM_Shred, const m_str); ANEW M_Object new_shred(const VM_Shred, const m_bool); -ANN void fork_launch(VM const*, const M_Object, const m_uint); +ANN void fork_launch(const M_Object, const m_uint); ANN void __release(const M_Object, const VM_Shred); ANN void exception(const VM_Shred, const m_str); ANN void broadcast(const M_Object); diff --git a/src/lib/shred.c b/src/lib/shred.c index 55340937..fae26470 100644 --- a/src/lib/shred.c +++ b/src/lib/shred.c @@ -248,7 +248,7 @@ struct ThreadLauncher *tl = data; THREAD_RETURN(0); } -ANN void fork_launch(VM const* vm, const M_Object o, const m_uint sz) { +ANN void fork_launch(const M_Object o, const m_uint sz) { FORK_RETSIZE(o) = sz; MUTEX_SETUP(FORK_MUTEX(o)); THREAD_COND_SETUP(FORK_COND(o)); diff --git a/src/vm/vm.c b/src/vm/vm.c index 39c43753..ebe1f586 100644 --- a/src/vm/vm.c +++ b/src/vm/vm.c @@ -146,7 +146,7 @@ ANN static VM_Shred init_fork_shred(const VM_Shred shred, const VM_Code code, co vector_init(&parent->gwion->data->child); vector_add(&parent->gwion->data->child, (vtype)o); shreduler_add(vm->shreduler, sh); - fork_launch(parent, sh->info->me, retsz); + fork_launch(sh->info->me, retsz); return sh; } -- 2.43.0