Skip to content

Commit 74deb3c

Browse files
committed
Merge branch 'fix-ci-build'
2 parents 89ca62c + 7f7e072 commit 74deb3c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/compiler/type_checker.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,12 +413,13 @@ static void checkStmt(TypeChecker* checker, Stmt* stmt) {
413413
break;
414414

415415
case STMT_RETURN: {
416-
// TypeInfo retType;
416+
TypeInfo retType;
417417
if (stmt->as.return_stmt.value) {
418418
retType = checkExpr(checker, stmt->as.return_stmt.value);
419419
} else {
420420
retType = createType(TYPE_VOID);
421421
}
422+
(void)retType; // Suppress unused variable warning until TODOs are implemented
422423
// TODO: Match validity against current function return type
423424
break;
424425
}

0 commit comments

Comments
 (0)