Skip to content

Commit 8e4152c

Browse files
committed
rtl8195am - fix tcm_heap.c warnings
Fix the following warnings: [Warning] tcm_heap.c@70,18: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'MemChunk * {aka struct _MemChunk *}' [-Wformat=] [Warning] tcm_heap.c@70,28: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'MemChunk * {aka struct _MemChunk *}' [-Wformat=] [Warning] tcm_heap.c@336,6: unused variable 'i' [-Wunused-variable] Signed-off-by: Tony Wu <[email protected]>
1 parent 33cc3b7 commit 8e4152c

File tree

1 file changed

+2
-2
lines changed
  • targets/TARGET_Realtek/TARGET_AMEBA/sdk/os/os_dep

1 file changed

+2
-2
lines changed

targets/TARGET_Realtek/TARGET_AMEBA/sdk/os/os_dep/tcm_heap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ void tcm_heap_dump(void)
6767
chunk;
6868
prev = chunk, chunk = chunk->next)
6969
{
70-
printf(" prev %x, chunk %x, size %d \n\r", prev, chunk, chunk->size);
70+
printf(" prev %p, chunk %p, size %d \n\r", prev, chunk, chunk->size);
7171
}
7272
printf("--------------\n\r");
7373
}
@@ -333,7 +333,7 @@ int tcm_heap_testRun(void)
333333
alloc_test(ALLOC_SIZE2, TEST_LEN2);
334334
/* Try to allocate the whole heap */
335335
uint8_t *b = tcm_heap_allocmem(HEAP_SIZE);
336-
int i, j;
336+
int j;
337337
//ASSERT(b);
338338
//ASSERT(heap_freeSpace(&h) == 0);
339339

0 commit comments

Comments
 (0)