From a8d1e5273abad02e594c4ad2f237a204ca239528 Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Tue, 24 Sep 2024 21:55:10 +0300 Subject: [PATCH] linux-dmabuf-v1: use static_assert --- types/wlr_linux_dmabuf_v1.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/types/wlr_linux_dmabuf_v1.c b/types/wlr_linux_dmabuf_v1.c index bfd97637..73a1d8f0 100644 --- a/types/wlr_linux_dmabuf_v1.c +++ b/types/wlr_linux_dmabuf_v1.c @@ -51,9 +51,7 @@ struct wlr_linux_dmabuf_feedback_v1_table_entry { uint64_t modifier; }; -// TODO: switch back to static_assert once this fix propagates in stable trees: -// https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255290 -_Static_assert(sizeof(struct wlr_linux_dmabuf_feedback_v1_table_entry) == 16, +static_assert(sizeof(struct wlr_linux_dmabuf_feedback_v1_table_entry) == 16, "Expected wlr_linux_dmabuf_feedback_v1_table_entry to be tightly packed"); struct wlr_linux_dmabuf_v1_surface {