mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
linux-dmabuf-v1: use static_assert
This commit is contained in:
parent
56d69320c7
commit
a8d1e5273a
1 changed files with 1 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue