apps/examples/testcase/tc_umm_heap.c : Fix build warning for unused variable
le_tc/kernel/tc_umm_heap.c:144:9: error: unused variable 'alloc_size' [-Werror=unused-variable]
size_t alloc_size = ALLOC_SIZE_VAL * sizeof(int);
^~~~~~~~~~
cc1: all warnings being treated as errors
@@ -141,8 +141,8 @@ static void tc_umm_heap_calloc(void)
int *mem_ptr[ALLOC_FREE_TIMES] = { NULL };
int n_alloc;
int n_test_iter;
- size_t alloc_size = ALLOC_SIZE_VAL * sizeof(int);
#ifdef CONFIG_DEBUG_MM_HEAPINFO
+ size_t alloc_size = ALLOC_SIZE_VAL * sizeof(int);
pid_t hash_pid = PIDHASH(getpid());;
struct mm_heap_s *heap;
#endif
