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.
This commit is contained in:
Alex Rønne Petersen 2025-12-01 04:31:05 +01:00
parent 672ce9e919
commit 56add8374c
No known key found for this signature in database

View file

@ -4682,14 +4682,6 @@ pub const siginfo_t = switch (native_os) {
},
__pad: [128 - 3 * @sizeOf(c_int)]u8,
},
comptime {
if (@sizeOf(usize) == 4)
assert(@sizeOf(@This()) == 128)
else
// Take into account the padding between errno and data fields.
assert(@sizeOf(@This()) == 136);
}
},
// https://github.com/SerenityOS/serenity/blob/ec492a1a0819e6239ea44156825c4ee7234ca3db/Kernel/API/POSIX/signal.h#L27-L37
.serenity => extern struct {