mirror of https://github.com/ARMmbed/mbed-os.git
Fix warning about unused mutex
Move the metrics mutex into the ifdef MBED_STACK_STATS_ENABLED since it is not used ouside of it. This fixes the warning: [Warning] greentea_metrics.cpp@37,28: 'mutex' defined but not used [-Wunused-variable]pull/4454/head
parent
a41e08c7bf
commit
2d7cf60278
|
@ -32,9 +32,9 @@ typedef struct {
|
|||
uint32_t max_stack;
|
||||
} thread_info_t;
|
||||
|
||||
#if defined(MBED_STACK_STATS_ENABLED) && MBED_STACK_STATS_ENABLED
|
||||
// Mutex to protect "buf"
|
||||
static SingletonPtr<Mutex> mutex;
|
||||
#if defined(MBED_STACK_STATS_ENABLED) && MBED_STACK_STATS_ENABLED
|
||||
static char buf[128];
|
||||
static SingletonPtr<CircularBuffer<thread_info_t, THREAD_BUF_COUNT> > queue;
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue