From bc853b72aca27aba3431be9775373755ea9b6435 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Wed, 2 Oct 2024 12:27:52 +0200 Subject: soc/mt/mt8196/gpio_eint.c: Add assert message This fixes the following warning with clang (18.1.6): src/soc/mediatek/mt8196/gpio_eint.c:259:44: error: '_Static_assert' with no message is a C23 extension [-Werror,-Wc23-extensions] 259 | _Static_assert(ARRAY_SIZE(eint_data) == 293); | ^ | Change-Id: I934b6d7ee8e8a0c204a4e328331c3ff3cd0f07de Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/84618 Reviewed-by: Felix Held Tested-by: build bot (Jenkins) --- src/soc/mediatek/mt8196/gpio_eint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/soc/mediatek/mt8196/gpio_eint.c b/src/soc/mediatek/mt8196/gpio_eint.c index edbae73939..f24860d128 100644 --- a/src/soc/mediatek/mt8196/gpio_eint.c +++ b/src/soc/mediatek/mt8196/gpio_eint.c @@ -256,7 +256,7 @@ static struct eint_info eint_data[] = { [291] = { EINT_C, 20 }, [292] = { EINT_C, 21 }, }; -_Static_assert(ARRAY_SIZE(eint_data) == 293); +_Static_assert(ARRAY_SIZE(eint_data) == 293, "Incorrect eint_data size"); void gpio_calc_eint_pos_bit(gpio_t gpio, u32 *pos, u32 *bit) { -- cgit v1.2.3