Fix some warnings

added cleanup of unused variables and fix warning about missing initializers
to resolve build warnings in pipewire-rs

Signed-off-by: Dorinda Bassey <dbassey@redhat.com>
This commit is contained in:
Dorinda Bassey 2023-11-21 17:18:26 +01:00 committed by Wim Taymans
parent e8c6c78982
commit f4a56ad45d
7 changed files with 20 additions and 19 deletions

View file

@ -78,7 +78,7 @@ static inline int spa_pod_choice_fix_default(struct spa_pod_choice *choice)
}
static inline int spa_pod_filter_flags_value(struct spa_pod_builder *b,
uint32_t type, const void *r1, const void *r2, uint32_t size)
uint32_t type, const void *r1, const void *r2, uint32_t size SPA_UNUSED)
{
switch (type) {
case SPA_TYPE_Int:
@ -104,7 +104,7 @@ static inline int spa_pod_filter_flags_value(struct spa_pod_builder *b,
}
static inline int spa_pod_filter_is_step_of(uint32_t type, const void *r1,
const void *r2, uint32_t size)
const void *r2, uint32_t size SPA_UNUSED)
{
switch (type) {
case SPA_TYPE_Int: