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
Russ Butler 2017-06-05 17:08:50 -05:00
parent a41e08c7bf
commit 2d7cf60278
1 changed files with 1 additions and 1 deletions

View File

@ -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