diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2025-08-08 13:16:20 +0100 |
|---|---|---|
| committer | gingerBill <gingerBill@users.noreply.github.com> | 2025-08-08 13:16:20 +0100 |
| commit | 7c93a5ae802b5a17aff6fea7368f9b27deed6517 (patch) | |
| tree | fe116a991aeb6194f2402710893709cb25e0f725 | |
| parent | 8ff15eaf6905eb167dc541cd2558599a0a334c28 (diff) | |
Add missing `contextless`
| -rw-r--r-- | core/sys/info/cpu_linux_riscv64.odin | 2 | ||||
| -rw-r--r-- | core/sys/unix/sysctl_openbsd.odin | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/sys/info/cpu_linux_riscv64.odin b/core/sys/info/cpu_linux_riscv64.odin index 39ed69240..e65e8a3d2 100644 --- a/core/sys/info/cpu_linux_riscv64.odin +++ b/core/sys/info/cpu_linux_riscv64.odin @@ -81,7 +81,7 @@ init_cpu_features :: proc "contextless" () { } err := linux.riscv_hwprobe(raw_data(pairs), len(pairs), 0, nil, {}) if err != nil { - assert(err == .ENOSYS, "unexpected error from riscv_hwprobe()") + assert_contextless(err == .ENOSYS, "unexpected error from riscv_hwprobe()") return } diff --git a/core/sys/unix/sysctl_openbsd.odin b/core/sys/unix/sysctl_openbsd.odin index 49c9b6336..e71b743f8 100644 --- a/core/sys/unix/sysctl_openbsd.odin +++ b/core/sys/unix/sysctl_openbsd.odin @@ -9,7 +9,7 @@ foreign libc { @(link_name="sysctl") _unix_sysctl :: proc(name: [^]i32, namelen: u32, oldp: rawptr, oldlenp: ^c.size_t, newp: rawptr, newlen: c.size_t) -> i32 --- } -sysctl :: proc(mib: []i32, val: ^$T) -> (ok: bool) { +sysctl :: proc "contextless" (mib: []i32, val: ^$T) -> (ok: bool) { mib := mib result_size := c.size_t(size_of(T)) res := _unix_sysctl(raw_data(mib), u32(len(mib)), val, &result_size, nil, 0) |