Skip to content

Commit a035b24

Browse files
committed
returning a value when the func type expects void
1 parent 585d5d3 commit a035b24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jsvar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4401,7 +4401,7 @@ static void _jsvDefragment_moveReferences(JsVarRef defragFromRef, JsVarRef defra
44014401
void jsvDefragment() {
44024402
// https://github.com/espruino/Espruino/issues/1740
44034403
// garbage collect - removes cruft, also puts free list in order
4404-
if (isMemoryBusy) return 0;
4404+
if (isMemoryBusy) return;
44054405
jsvGarbageCollect();
44064406
// Set memory busy so nobody can allocate, and we can defrag with IRQ on
44074407
isMemoryBusy = MEMBUSY_DEFRAG;

0 commit comments

Comments
 (0)