mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-07-21 10:16:14 +00:00
pipewire: log: do not generate parentheses around variable decls
It causes "warning: unnecessary parentheses in declaration of ..." warnings in C++.
This commit is contained in:
parent
8847b537a4
commit
e299534929
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue