mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-04 21:18:03 +02:00
log: make log macros compilable with c++ without warnings
Signed-off-by: Martin Geier <martin.geier@streamunlimited.com>
This commit is contained in:
parent
80478e7548
commit
71717ac7ff
1 changed files with 2 additions and 2 deletions
|
|
@ -69,11 +69,11 @@ typedef struct {
|
|||
extern WpLogTopic * var;
|
||||
|
||||
#define WP_LOG_TOPIC(var, name) \
|
||||
WpLogTopic var##_struct = { .topic_name = name, .flags = WP_LOG_TOPIC_FLAG_STATIC }; \
|
||||
WpLogTopic var##_struct = { .topic_name = name, .flags = WP_LOG_TOPIC_FLAG_STATIC, { NULL } }; \
|
||||
WpLogTopic * var = &(var##_struct);
|
||||
|
||||
#define WP_LOG_TOPIC_STATIC(var, name) \
|
||||
static WpLogTopic var##_struct = { .topic_name = name, .flags = WP_LOG_TOPIC_FLAG_STATIC }; \
|
||||
static WpLogTopic var##_struct = { .topic_name = name, .flags = WP_LOG_TOPIC_FLAG_STATIC, { NULL } }; \
|
||||
static G_GNUC_UNUSED WpLogTopic * var = &(var##_struct);
|
||||
|
||||
#define WP_DEFINE_LOCAL_LOG_TOPIC(name) \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue