linux-dmabuf-v1: use static_assert

This commit is contained in:
Kirill Primak 2024-09-24 21:55:10 +03:00 committed by Alexander Orzechowski
parent 56d69320c7
commit a8d1e5273a

View File

@ -51,9 +51,7 @@ struct wlr_linux_dmabuf_feedback_v1_table_entry {
uint64_t modifier; uint64_t modifier;
}; };
// TODO: switch back to static_assert once this fix propagates in stable trees: static_assert(sizeof(struct wlr_linux_dmabuf_feedback_v1_table_entry) == 16,
// https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255290
_Static_assert(sizeof(struct wlr_linux_dmabuf_feedback_v1_table_entry) == 16,
"Expected wlr_linux_dmabuf_feedback_v1_table_entry to be tightly packed"); "Expected wlr_linux_dmabuf_feedback_v1_table_entry to be tightly packed");
struct wlr_linux_dmabuf_v1_surface { struct wlr_linux_dmabuf_v1_surface {