fix:消除编译告警

【背景】
 消除编译告警

【修改方案】
 消除编译告警

 re #I3ZC1R

 Change-Id: If5748c7ed420a9ff822c20ffb17dee2815e9bddc

 Signed-off-by: x-xiny <1301913191@qq.com>

Change-Id: Id78631543b0c41f11e1c3594200a3ad43543bbf5
This commit is contained in:
x_xiny 2021-07-06 16:30:23 +08:00
parent aa6385ce16
commit d8c8c22666
3 changed files with 2 additions and 3 deletions

View File

@ -241,7 +241,7 @@ VOID LOS_RecordLR(UINTPTR *LR, UINT32 LRSize, UINT32 jumpCount, UINTPTR SP)
STATIC INLINE BOOL OsInsIsJump(UINTPTR addr) STATIC INLINE BOOL OsInsIsJump(UINTPTR addr)
{ {
UINT16 ins1 = *((UINT16 *)addr); UINT16 ins1 = *((UINT16 *)addr);
UINT16 ins2 = *((UINT16 *)(addr + 2)); UINT16 ins2 = *((UINT16 *)(addr + 2)); // 2, for the mask
/* Jal ins */ /* Jal ins */
if (((ins1 & OS_JALX_INS_MASK) == OS_JAL_INS_LOW) || if (((ins1 & OS_JALX_INS_MASK) == OS_JAL_INS_LOW) ||

View File

@ -258,7 +258,7 @@ uint32_t osKernelGetTickFreq(void)
uint32_t osKernelGetSysTimerCount(void) uint32_t osKernelGetSysTimerCount(void)
{ {
uint32_t countLow = 0; uint32_t countLow;
if (OS_INT_ACTIVE) { if (OS_INT_ACTIVE) {
countLow = 0U; countLow = 0U;
} else { } else {

View File

@ -30,7 +30,6 @@
*/ */
#include "los_sem.h" #include "los_sem.h"
#include "los_arch.h"
#include "los_config.h" #include "los_config.h"
#include "los_debug.h" #include "los_debug.h"
#include "los_hook.h" #include "los_hook.h"