aboutsummaryrefslogtreecommitdiff
path: root/lib/c.zig
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2022-09-15 00:43:48 +0300
committerAndrew Kelley <andrew@ziglang.org>2022-09-20 19:05:00 -0700
commit694fab484805088030fa36efe3e6b6e7ee385852 (patch)
tree451290910b16372dfdad4336efbc0124248582d7 /lib/c.zig
parent8f2e82dbf63aedc64af5c701c4798e9fbd51de72 (diff)
downloadzig-694fab484805088030fa36efe3e6b6e7ee385852.tar.gz
zig-694fab484805088030fa36efe3e6b6e7ee385852.zip
std: add return address parameter to panic fn
Diffstat (limited to 'lib/c.zig')
-rw-r--r--lib/c.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/c.zig b/lib/c.zig
index c08454a22c..4a6ca18782 100644
--- a/lib/c.zig
+++ b/lib/c.zig
@@ -58,7 +58,7 @@ comptime {
// Avoid dragging in the runtime safety mechanisms into this .o file,
// unless we're trying to test this file.
-pub fn panic(msg: []const u8, error_return_trace: ?*std.builtin.StackTrace) noreturn {
+pub fn panic(msg: []const u8, error_return_trace: ?*std.builtin.StackTrace, _: ?usize) noreturn {
@setCold(true);
_ = error_return_trace;
if (builtin.is_test) {