authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-12-01 04:31:05+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-12-16 06:24:54+01:00
log56add8374c43291c99505aa6d7bb80a5ff08723d
tree451faebc8c8f7e9bae4183e13f5df18ed6f54e68
parent672ce9e9196ec5ffcde9f99201c3a1ce81f95e92
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.c: remove comptime asserts of siginfo_t size

These serve no purpose other than to verify that the compiler is doing layout correctly, and this is clearly not the place for that.

1 files changed, 0 insertions(+), 8 deletions(-)

lib/std/c.zig-8
...@@ -4682,14 +4682,6 @@ pub const siginfo_t = switch (native_os) {...@@ -4682,14 +4682,6 @@ pub const siginfo_t = switch (native_os) {
4682 },4682 },
4683 __pad: [128 - 3 * @sizeOf(c_int)]u8,4683 __pad: [128 - 3 * @sizeOf(c_int)]u8,
4684 },4684 },
4685
4686 comptime {
4687 if (@sizeOf(usize) == 4)
4688 assert(@sizeOf(@This()) == 128)
4689 else
4690 // Take into account the padding between errno and data fields.
4691 assert(@sizeOf(@This()) == 136);
4692 }
4693 },4685 },
4694 // https://github.com/SerenityOS/serenity/blob/ec492a1a0819e6239ea44156825c4ee7234ca3db/Kernel/API/POSIX/signal.h#L27-L374686 // https://github.com/SerenityOS/serenity/blob/ec492a1a0819e6239ea44156825c4ee7234ca3db/Kernel/API/POSIX/signal.h#L27-L37
4695 .serenity => extern struct {4687 .serenity => extern struct {