returning a value when the func type expects void

This commit is contained in:
Gordon Williams 2025-12-08 10:38:06 +00:00
parent 585d5d38c1
commit a035b24471

View File

@ -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;