From e299534929931e4bb727e8b7aed2668f546081db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Sat, 24 Jun 2023 21:39:15 +0200 Subject: [PATCH] pipewire: log: do not generate parentheses around variable decls It causes "warning: unnecessary parentheses in declaration of ..." warnings in C++. --- src/pipewire/log.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pipewire/log.h b/src/pipewire/log.h index 5e16be5e5..ad1278943 100644 --- a/src/pipewire/log.h +++ b/src/pipewire/log.h @@ -96,7 +96,7 @@ _pw_log_topic_new(struct spa_log_topic *topic); */ #define PW_LOG_TOPIC_STATIC(var, topic) \ static struct spa_log_topic var##__LINE__ = SPA_LOG_TOPIC(0, topic); \ - static struct spa_log_topic *(var) = &(var##__LINE__) + static struct spa_log_topic *var = &(var##__LINE__) /** * Declare a static log topic named \a var. @@ -111,7 +111,7 @@ _pw_log_topic_new(struct spa_log_topic *topic); */ #define PW_LOG_TOPIC(var, topic) \ struct spa_log_topic var##__LINE__ = SPA_LOG_TOPIC(0, topic); \ - struct spa_log_topic *(var) = &(var##__LINE__) + struct spa_log_topic *var = &(var##__LINE__) #define PW_LOG_TOPIC_INIT(var) \ spa_log_topic_init(pw_log_get(), var);