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

@ -19,7 +19,7 @@ extern "C" {
* \{
*/
static inline SPA_PRINTF_FUNC(7, 0) void spa_log_impl_logtv(void *object,
static inline SPA_PRINTF_FUNC(7, 0) void spa_log_impl_logtv(void *object SPA_UNUSED,
enum spa_log_level level,
const struct spa_log_topic *topic,
const char *file,
@ -88,7 +88,7 @@ static inline SPA_PRINTF_FUNC(6,7) void spa_log_impl_log(void *object,
va_end(args);
}
static inline void spa_log_impl_topic_init(void *object, struct spa_log_topic *topic)
static inline void spa_log_impl_topic_init(void *object SPA_UNUSED, struct spa_log_topic *topic SPA_UNUSED)
{
/* noop */
}