mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-17 06:46:39 -04:00
Fix build errors with -Werror and NDEBUG
To reproduce:
meson setup build -Db_ndebug=true --werror
meson compile -C build
This commit is contained in:
parent
4666996b2a
commit
722f3eae42
9 changed files with 33 additions and 38 deletions
|
|
@ -213,11 +213,10 @@ static void linux_dmabuf_feedback_v1_handle_tranche_formats(void *data,
|
|||
return;
|
||||
}
|
||||
|
||||
size_t table_cap = feedback_data->format_table_size /
|
||||
sizeof(struct wlr_wl_linux_dmabuf_v1_table_entry);
|
||||
uint16_t *index_ptr;
|
||||
wl_array_for_each(index_ptr, indices_arr) {
|
||||
assert(*index_ptr < table_cap);
|
||||
assert(*index_ptr < feedback_data->format_table_size /
|
||||
sizeof(struct wlr_wl_linux_dmabuf_v1_table_entry));
|
||||
const struct wlr_wl_linux_dmabuf_v1_table_entry *entry =
|
||||
&feedback_data->format_table[*index_ptr];
|
||||
wlr_drm_format_set_add(&feedback_data->backend->linux_dmabuf_v1_formats,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue