提交 424f7ad6 编写于 作者: O openharmony_ci 提交者: Gitee

!79 将NORETURN声明放到函数前,KEIL不支持放在函数后

Merge pull request !79 from Caoruihong/fix_noreturn
......@@ -82,7 +82,7 @@ extern VOID *HalTskStackInit(UINT32 taskID, UINT32 stackSize, VOID *topStack);
* <ul><li>los_hw.h: the header file that contains the API declaration.</li></ul>
* @see None.
*/
LITE_OS_SEC_TEXT_MINOR VOID HalSysExit(VOID) NORETURN;
LITE_OS_SEC_TEXT_MINOR NORETURN VOID HalSysExit(VOID);
/* *
* @ingroup los_context
......
......@@ -501,8 +501,8 @@ extern VOID LOS_Msleep(UINT32 mSecs);
* @see
*/
extern UINT32 LOS_Start(VOID);
extern VOID LOS_Reboot(VOID) NORETURN;
extern VOID LOS_Panic(const CHAR *fmt, ...) NORETURN;
extern NORETURN VOID LOS_Reboot(VOID);
extern NORETURN VOID LOS_Panic(const CHAR *fmt, ...);
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册