!213 消除编译告警

Merge pull request !213 from x_xiny/master
This commit is contained in:
openharmony_ci 2021-07-09 08:37:18 +00:00 committed by Gitee
commit bf045e3eba
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"