From: Jérémie Astor Date: Wed, 6 May 2020 13:57:31 +0000 (+0200) Subject: :art: Remove unused variable in signature X-Git-Tag: nightly~1661 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=5486cd4dce45b0ff984bdcd94a2e07cde09eef77;p=gwion.git :art: Remove unused variable in signature --- 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; }