authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-11-29 07:38:33-08:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-12-01 19:17:52-08:00
log9e981c3ae517738eacc0456632651aae5626d109
tree0fb28cd460203df4aeb1f4a737cc567c21586a18
parent39ac40209b57d105dff28988a954a594e2e9dd8f

std.os.linux: delete unnecessary `@compileError`

Without this, it already fails to compile with a sufficiently helpful error message.

1 files changed, 1 insertions(+), 3 deletions(-)

lib/std/os/linux.zig+1-3
......@@ -1748,9 +1748,7 @@ pub fn settimeofday(tv: *const timeval, tz: *const timezone) usize {
17481748}
17491749
17501750pub fn nanosleep(req: *const timespec, rem: ?*timespec) usize {
1751 if (native_arch == .riscv32) {
1752 @compileError("No nanosleep syscall on this architecture.");
1753 } else return syscall2(.nanosleep, @intFromPtr(req), @intFromPtr(rem));
1751 return syscall2(.nanosleep, @intFromPtr(req), @intFromPtr(rem));
17541752}
17551753
17561754pub fn pause() usize {