From 96cc6a26328f0ec7dd9338c9e73d0db3d30201ec Mon Sep 17 00:00:00 2001 From: Anton Lindqvist <anton@basename.se> Date: Tue, 29 Oct 2024 08:59:17 +0100 Subject: [PATCH] XXX --- libks/section.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libks/section.h b/libks/section.h index 596664bc..dd30ef76 100644 --- a/libks/section.h +++ b/libks/section.h @@ -30,7 +30,7 @@ #endif #define SECTION_ITERATE(it, s) __extension__ ({ \ - extern char _aligned[sizeof(*(it)) & 0xf ? -1 : 0]; (void)_aligned;\ + _Static_assert((sizeof(*(it)) & 0xf) == 0, "Unaligned"); \ extern typeof(*(it)) __start_ ## s SECTION_START(s); \ typeof(it) _start = &__start_ ## s; \ extern typeof(*(it)) __stop_##s SECTION_STOP(s); \