mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05: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;
|
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…
Add table
Add a link
Reference in a new issue