From: Jérémie Astor Date: Sun, 19 Sep 2021 15:09:44 +0000 (+0200) Subject: :art: Fix VM warnings X-Git-Tag: nightly~435 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=37f317a52275d9e9cc1552cc1402666b53dffec4;p=gwion.git :art: Fix VM warnings --- diff --git a/src/vm/vm.c b/src/vm/vm.c index 6dbc0bfa..45787982 100644 --- a/src/vm/vm.c +++ b/src/vm/vm.c @@ -1102,9 +1102,11 @@ vm_run(const VM *vm) { // lgtm [cpp/use-of-goto] release(*(M_Object *)(mem + VAL), shred); DISPATCH() remref2: +{ struct Vector_ v = { .ptr = (m_uint*)VAL }; for(m_uint i = 0; i < vector_size(&v); i++) release(*(M_Object *)(mem + vector_at(&v, i)), shred); +} DISPATCH() except: /* TODO: Refactor except instruction *