Skip to content
Snippets Groups Projects
Commit c4f0f964 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

vlc_list: Fix dummy element initialization

C11 (§6.7.9.1) mandates than an initializer-list contains at least an
element
parent 1b2860d7
No related branches found
No related tags found
No related merge requests found
......@@ -233,7 +233,7 @@ static inline void vlc_list_it_next(struct vlc_list_it *restrict it)
((sizeof (*(p)) + sizeof (max_align_t) - 1) / sizeof (max_align_t))
#define vlc_list_entry_dummy(p) \
(0 ? (p) : ((void *)(&(max_align_t[vlc_list_entry_aligned_size(p)]){})))
(0 ? (p) : ((void *)(&(max_align_t[vlc_list_entry_aligned_size(p)]){0})))
#define vlc_list_offset_p(p, member) \
((p) = vlc_list_entry_dummy(p), (char *)(&(p)->member) - (char *)(p))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment