mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-24 07:00:05 -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
|
|
@ -22,8 +22,8 @@ struct spa_result_device_params_data {
|
|||
struct spa_result_device_params data;
|
||||
};
|
||||
|
||||
static inline void spa_result_func_device_params(void *data, int seq, int res,
|
||||
uint32_t type, const void *result)
|
||||
static inline void spa_result_func_device_params(void *data, int seq SPA_UNUSED, int res SPA_UNUSED,
|
||||
uint32_t type SPA_UNUSED, const void *result)
|
||||
{
|
||||
struct spa_result_device_params_data *d =
|
||||
(struct spa_result_device_params_data *)data;
|
||||
|
|
@ -42,8 +42,8 @@ static inline int spa_device_enum_params_sync(struct spa_device *device,
|
|||
struct spa_pod **param,
|
||||
struct spa_pod_builder *builder)
|
||||
{
|
||||
struct spa_result_device_params_data data = { builder, };
|
||||
struct spa_hook listener = {{0}};
|
||||
struct spa_result_device_params_data data = { builder, {0}};
|
||||
struct spa_hook listener = {{0}, {0}, 0, 0};
|
||||
static const struct spa_device_events device_events = {
|
||||
.version = SPA_VERSION_DEVICE_EVENTS,
|
||||
.info = NULL,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue