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

@ -24,7 +24,7 @@ struct spa_result_node_params_data {
};
static inline void spa_result_func_node_params(void *data,
int seq, int res, uint32_t type, const void *result)
int seq SPA_UNUSED, int res SPA_UNUSED, uint32_t type SPA_UNUSED, const void *result)
{
struct spa_result_node_params_data *d =
(struct spa_result_node_params_data *) data;
@ -43,8 +43,8 @@ static inline int spa_node_enum_params_sync(struct spa_node *node,
struct spa_pod **param,
struct spa_pod_builder *builder)
{
struct spa_result_node_params_data data = { builder, };
struct spa_hook listener = {{0}};
struct spa_result_node_params_data data = { builder, {0}};
struct spa_hook listener = {{0}, {0}, 0, 0};
static const struct spa_node_events node_events = {
.version = SPA_VERSION_NODE_EVENTS,
.info = NULL,
@ -77,8 +77,8 @@ static inline int spa_node_port_enum_params_sync(struct spa_node *node,
struct spa_pod **param,
struct spa_pod_builder *builder)
{
struct spa_result_node_params_data data = { builder, };
struct spa_hook listener = {{0}};
struct spa_result_node_params_data data = { builder, {0}};
struct spa_hook listener = {{0}, {0}, 0, 0};
static const struct spa_node_events node_events = {
.version = SPA_VERSION_NODE_EVENTS,
.info = NULL,