From a3c51a780e9a627cfc8645bf8c9c03302e0fadc5 Mon Sep 17 00:00:00 2001 From: Luke Krasnoff Date: Mon, 6 Dec 2021 15:53:03 +1030 Subject: [PATCH] StackTrace builtin has moved to under std. Silence compiler complaint for unused parameter. --- hellos.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hellos.zig b/hellos.zig index 1a300ba..c8623a7 100644 --- a/hellos.zig +++ b/hellos.zig @@ -1,4 +1,4 @@ -const builtin = @import("builtin"); +const builtin = @import("std").builtin; const MultiBoot = packed struct { magic: i32, @@ -27,6 +27,7 @@ export fn _start() callconv(.Naked) noreturn { } pub fn panic(msg: []const u8, error_return_trace: ?*builtin.StackTrace) noreturn { + _ = error_return_trace; // keep zig compiler happy with unused parameter @setCold(true); terminal.write("KERNEL PANIC: "); terminal.write(msg);