chore: fix warnings shown by Clang 16

These might have existed earlier, but fixing anyway
This commit is contained in:
Dmitry Sharshakov 2023-05-09 11:00:36 +03:00 committed by Wim Taymans
parent 171e2a99ba
commit 249cf9bfbe
3 changed files with 2 additions and 3 deletions

View file

@ -61,4 +61,4 @@ void dbus_monitor_init(struct dbus_monitor *monitor,
void dbus_monitor_clear(struct dbus_monitor *monitor);
#endif DBUS_MONITOR_H_
#endif // DBUS_MONITOR_H_

View file

@ -639,7 +639,6 @@ static int set_params(struct impl* impl, const struct spa_pod *params)
{
struct spa_pod_parser prs;
struct spa_pod_frame f;
int changed = 0;
spa_pod_parser_pod(&prs, params);
if (spa_pod_parser_push_struct(&prs, &f) < 0)
@ -668,7 +667,6 @@ static int set_params(struct impl* impl, const struct spa_pod *params)
if (spa_streq(name, "debug.aec.wav-path")) {
spa_scnprintf(impl->wav_path,
sizeof(impl->wav_path), "%s", value);
changed++;
}
}
spa_audio_aec_set_params(impl->aec, params);

View file

@ -1639,6 +1639,7 @@ static void stream_param_changed(void *data, uint32_t id, const struct spa_pod *
case SPA_PARAM_Props:
if (param != NULL)
stream_props_changed(impl, id, param);
break;
default:
break;
}