linux-dmabuf-v1: use static_assert

master
Kirill Primak 2 months ago committed by Alexander Orzechowski
parent 56d69320c7
commit a8d1e5273a

@ -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 {

Loading…
Cancel
Save