From c57fcd1db536591ecdee8c9ec497c8ea667c57f0 Mon Sep 17 00:00:00 2001 From: Evan Haas Date: Tue, 30 Jul 2024 17:20:09 -0700 Subject: [PATCH] aro_translate_c: demote functions with bodies to extern Translating statements is currently not supported; demoting to extern is better than crashing. --- lib/compiler/aro_translate_c.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/compiler/aro_translate_c.zig b/lib/compiler/aro_translate_c.zig index dd8ca54819..39cdbcba1e 100644 --- a/lib/compiler/aro_translate_c.zig +++ b/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 {