mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
returning a value when the func type expects void
This commit is contained in:
parent
585d5d38c1
commit
a035b24471
@ -4401,7 +4401,7 @@ static void _jsvDefragment_moveReferences(JsVarRef defragFromRef, JsVarRef defra
|
||||
void jsvDefragment() {
|
||||
// https://github.com/espruino/Espruino/issues/1740
|
||||
// garbage collect - removes cruft, also puts free list in order
|
||||
if (isMemoryBusy) return 0;
|
||||
if (isMemoryBusy) return;
|
||||
jsvGarbageCollect();
|
||||
// Set memory busy so nobody can allocate, and we can defrag with IRQ on
|
||||
isMemoryBusy = MEMBUSY_DEFRAG;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user