Commit c57fcd1db5

Evan Haas <evan@lagerdata.com>
2024-07-31 02:20:09
aro_translate_c: demote functions with bodies to extern
Translating statements is currently not supported; demoting to extern is better than crashing.
1 parent 6997f82
Changed files (1)
lib
lib/compiler/aro_translate_c.zig
@@ -971,7 +971,9 @@ fn transFnType(
 }
 
 fn transStmt(c: *Context, node: NodeIndex) TransError!ZigNode {
-    return transExpr(c, node, .unused);
+    _ = c;
+    _ = node;
+    return error.UnsupportedTranslation;
 }
 
 fn transCompoundStmtInline(c: *Context, compound: NodeIndex, block: *Scope.Block) TransError!void {