From 56add8374c43291c99505aa6d7bb80a5ff08723d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Mon, 1 Dec 2025 04:31:05 +0100 Subject: [PATCH] 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. --- lib/std/c.zig | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/std/c.zig b/lib/std/c.zig index 6a8e142a0ce5bc07f92cc04cf4d5ae5d6a76762d..c39c8721ed48bfbe8beac399389dd9f5258745cb 100644 --- a/lib/std/c.zig +++ b/lib/std/c.zig @@ -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 { -- 2.54.0