spa: fix compiler warnings about missing braces in initializer

First element is a spa_list, so {{0}} it is.

../spa/include/spa/node/utils.h:98:40: warning: missing braces around initializer for ‘spa_list’ [-Wmissing-braces]
   98 |         struct spa_hook listener = { 0 };
This commit is contained in:
Peter Hutterer 2021-06-04 13:45:06 +10:00
parent 98503a84b3
commit 3332e271be
2 changed files with 3 additions and 3 deletions

View file

@ -57,7 +57,7 @@ static inline int spa_device_enum_params_sync(struct spa_device *device,
struct spa_pod_builder *builder)
{
struct spa_result_device_params_data data = { builder, };
struct spa_hook listener = { 0 };
struct spa_hook listener = {{0}};
static const struct spa_device_events device_events = {
SPA_VERSION_DEVICE_EVENTS,
.result = spa_result_func_device_params,

View file

@ -63,7 +63,7 @@ static inline int spa_node_enum_params_sync(struct spa_node *node,
struct spa_pod_builder *builder)
{
struct spa_result_node_params_data data = { builder, };
struct spa_hook listener = { 0 };
struct spa_hook listener = {{0}};
static const struct spa_node_events node_events = {
SPA_VERSION_NODE_EVENTS,
.result = spa_result_func_node_params,
@ -95,7 +95,7 @@ static inline int spa_node_port_enum_params_sync(struct spa_node *node,
struct spa_pod_builder *builder)
{
struct spa_result_node_params_data data = { builder, };
struct spa_hook listener = { 0 };
struct spa_hook listener = {{0}};
static const struct spa_node_events node_events = {
SPA_VERSION_NODE_EVENTS,
.result = spa_result_func_node_params,