mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-01-11 11:08:42 -05:00
fix some compiler warnings with clang
This commit is contained in:
parent
317f3b6be7
commit
e4cac644d2
20 changed files with 67 additions and 46 deletions
|
|
@ -51,6 +51,8 @@ enum spa_direction {
|
|||
SPA_DIRECTION_OUTPUT = 1,
|
||||
};
|
||||
|
||||
#define SPA_DIRECTION_REVERSE(d) ((d) ^ 1)
|
||||
|
||||
#define SPA_RECTANGLE(width,height) (struct spa_rectangle){ width, height }
|
||||
struct spa_rectangle {
|
||||
uint32_t width;
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ static inline void spa_hook_remove(struct spa_hook *hook)
|
|||
({ \
|
||||
struct spa_hook_list *list = l; \
|
||||
struct spa_list *s = start ? (struct spa_list *)start : &list->list; \
|
||||
struct spa_hook cursor = { 0 }, *ci; \
|
||||
struct spa_hook cursor = { { 0} }, *ci; \
|
||||
int count = 0; \
|
||||
spa_list_cursor_start(cursor, s, link); \
|
||||
spa_list_for_each_cursor(ci, cursor, &list->list, link) { \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue