diff --git a/components/backtrace/los_backtrace.c b/components/backtrace/los_backtrace.c index 649da6da97e34a8e6d857667009a915be8d7f0ca..41d0d81df25b076ce10ee92101faf5e92b84299e 100644 --- a/components/backtrace/los_backtrace.c +++ b/components/backtrace/los_backtrace.c @@ -241,7 +241,7 @@ VOID LOS_RecordLR(UINTPTR *LR, UINT32 LRSize, UINT32 jumpCount, UINTPTR SP) STATIC INLINE BOOL OsInsIsJump(UINTPTR addr) { UINT16 ins1 = *((UINT16 *)addr); - UINT16 ins2 = *((UINT16 *)(addr + 2)); + UINT16 ins2 = *((UINT16 *)(addr + 2)); // 2, for the mask /* Jal ins */ if (((ins1 & OS_JALX_INS_MASK) == OS_JAL_INS_LOW) || diff --git a/kal/cmsis/cmsis_liteos2.c b/kal/cmsis/cmsis_liteos2.c index 2f3d73462282eee876bebc194c25e27bb8b19f05..2b5eebc4db436a4a6184ad0ca568732a0f01565e 100644 --- a/kal/cmsis/cmsis_liteos2.c +++ b/kal/cmsis/cmsis_liteos2.c @@ -258,7 +258,7 @@ uint32_t osKernelGetTickFreq(void) uint32_t osKernelGetSysTimerCount(void) { - uint32_t countLow = 0; + uint32_t countLow; if (OS_INT_ACTIVE) { countLow = 0U; } else { diff --git a/kernel/src/los_sem.c b/kernel/src/los_sem.c index 685256ce8ec0b43fb232f8e61758cab2c662d706..13e0fb6c40b87b2ac188eb7478dfc9e1a15ccaa6 100644 --- a/kernel/src/los_sem.c +++ b/kernel/src/los_sem.c @@ -30,7 +30,6 @@ */ #include "los_sem.h" -#include "los_arch.h" #include "los_config.h" #include "los_debug.h" #include "los_hook.h"