Closed thiagomacieira closed 4 years ago
#define declare_alloc_tracking(_type) \
GMutex alloc_##_mutex; \
unsigned long long num_##_type = 0; \
unsigned long long max_##_type = 0; \
The mutex variable looks wrong. You're concatenating two tokens in the preprocessor but neither is the macro parameter, like it is on all the other declarations.
Either way, please either make them static
or, if the mutex is really meant to be shared, make it extern
and define it in a single .c file.
This should be fixed in trunk.