mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-18 07:00:06 -05:00
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:
parent
e8c6c78982
commit
f4a56ad45d
7 changed files with 20 additions and 19 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue