mirror of
https://github.com/pvvx/RTL00MP3.git
synced 2025-07-31 12:41:06 +00:00
update -Wall -Werror
This commit is contained in:
parent
2c29a376ba
commit
7cb9553f73
102 changed files with 3686 additions and 3504 deletions
|
|
@ -34,6 +34,7 @@ static void device_mutex_init(RT_DEV_LOCK_E device)
|
|||
}
|
||||
|
||||
//======================================================
|
||||
#if 0 // unused-function
|
||||
static void device_mutex_free(RT_DEV_LOCK_E device)
|
||||
{
|
||||
if(DEVICE_MUTEX_IS_INIT(device)){
|
||||
|
|
@ -47,7 +48,7 @@ static void device_mutex_free(RT_DEV_LOCK_E device)
|
|||
rtw_exit_critical(&lock, &irqL);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
//======================================================
|
||||
void device_mutex_lock(RT_DEV_LOCK_E device)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -49,11 +49,12 @@
|
|||
|
||||
//#define RtlKmalloc(size, flag) pvPortMallocAligned(size, 0)
|
||||
#define RtlKmalloc(size, flag) pvPortMalloc(size)
|
||||
#define RtlKfree(pv) vPortFreeAligned(pv)
|
||||
#define RtlKfree(pv) vPortFree(pv)
|
||||
|
||||
|
||||
|
||||
#ifdef CONFIG_TIMER_MODULE
|
||||
extern _LONG_CALL_ unsigned int HalDelayUs(unsigned int us);
|
||||
#define __Delay(t) HalDelayUs(t)
|
||||
#else
|
||||
static __inline__ u32 __Delay(u32 us)
|
||||
|
|
@ -66,7 +67,7 @@ static __inline__ u32 __Delay(u32 us)
|
|||
#define Mdelay(t) __Delay(t*1000)
|
||||
#define Udelay(t) __Delay(t)
|
||||
|
||||
|
||||
#undef ASSERT
|
||||
#define ASSERT(_bool_) do { } while (0)
|
||||
|
||||
//#define panic_printk DiagPrintf
|
||||
|
|
|
|||
|
|
@ -57,10 +57,9 @@ void tcm_heap_dump(void)
|
|||
{
|
||||
#if CONFIG_DEBUG_LOG > 1
|
||||
if(!g_heap_inited) tcm_heap_init();
|
||||
MemChunk *chunk, *prev;
|
||||
MemChunk *chunk;
|
||||
struct Heap* h = &g_tcm_heap;
|
||||
int count = 0;
|
||||
int free_mem;
|
||||
|
||||
DBG_8195A("TCM Free Heap Memory List:\n");
|
||||
for (chunk = h->FreeList; chunk; chunk = chunk->next) {
|
||||
|
|
@ -68,6 +67,7 @@ void tcm_heap_dump(void)
|
|||
}
|
||||
|
||||
/*
|
||||
MemChunk *prev;
|
||||
for (prev = (MemChunk *)&h->FreeList, chunk = h->FreeList;
|
||||
chunk;
|
||||
prev = chunk, chunk = chunk->next)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue