aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/export_generic_function.zig
diff options
context:
space:
mode:
authorIsaac Freund <mail@isaacfreund.com>2024-06-15 18:08:09 +0200
committerIsaac Freund <mail@isaacfreund.com>2024-06-18 22:35:28 +0200
commit5f2bdafa39255234381076d4095140f922d21577 (patch)
tree75f1b0410af558e1176c3e4bb95715d627a62235 /test/cases/compile_errors/export_generic_function.zig
parent7dc52a367ae6bf7d9adbe72f1d3c34103c3c6a4f (diff)
downloadzig-5f2bdafa39255234381076d4095140f922d21577.tar.gz
zig-5f2bdafa39255234381076d4095140f922d21577.zip
std.posix: remove unchecked std.os.linux usage
Using std.os.linux directly in e.g. std.posix.timerfd_create() causes the function to compile but silently fail at runtime when targeting any OS other than Linux. To catch errors like this at compile time, std.os.linux must only be directly accessed within std.posix where there has been a comptime check that the target os is in fact Linux.
Diffstat (limited to 'test/cases/compile_errors/export_generic_function.zig')
0 files changed, 0 insertions, 0 deletions