提交 bf045e3e 编写于 作者: O openharmony_ci 提交者: Gitee

!213 消除编译告警

Merge pull request !213 from x_xiny/master
......@@ -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) ||
......
......@@ -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 {
......
......@@ -30,7 +30,6 @@
*/
#include "los_sem.h"
#include "los_arch.h"
#include "los_config.h"
#include "los_debug.h"
#include "los_hook.h"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册