diff options
author | Joachim Schmidt <joachim.schmidt557@outlook.com> | 2021-07-31 20:21:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-31 20:21:44 +0200 |
commit | 4c0711be7826dc11a7eca0b2ac37d210fc7c1c0e (patch) | |
tree | 5705e0b42a48bd398321093730926c9075d98bc1 /lib/compilers/zig.js | |
parent | 7e1835fa0f376a81ef47b95bd7a1a9dd59d0cb9b (diff) | |
download | compiler-explorer-4c0711be7826dc11a7eca0b2ac37d210fc7c1c0e.tar.gz compiler-explorer-4c0711be7826dc11a7eca0b2ac37d210fc7c1c0e.zip |
Update to latest zig trunk (#2832)
Unused function parameters (used in the custom panic handler) are now
compile errors.
Diffstat (limited to 'lib/compilers/zig.js')
-rw-r--r-- | lib/compilers/zig.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/compilers/zig.js b/lib/compilers/zig.js index a93e7b18f..a92f70f68 100644 --- a/lib/compilers/zig.js +++ b/lib/compilers/zig.js @@ -72,6 +72,8 @@ export class ZigCompiler extends BaseCompiler { source += 'extern fn zig_panic() noreturn;\n'; source += 'pub fn panic(msg: []const u8, error_return_trace: ' + '?*@import("std").builtin.StackTrace) noreturn {\n'; + source += ' _ = msg;\n'; + source += ' _ = error_return_trace;\n'; source += ' zig_panic();\n'; source += '}\n'; } |