mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-22 07:02:28 +00:00
linux-dmabuf-v1: use static_assert
This commit is contained in:
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…
Reference in New Issue
Block a user