how to fix the compiling warning of "function does return"?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

how to fix the compiling warning of "function does return"?

跳至解决方案
2,529 次查看
xuedongyang
Contributor II

xuedongyang_0-1650915617537.png

Hi, NXP experts,

I observed compiling warnings "function does return". Any idea why we got the warnings and how to fix it?

Thanks,

Xuedong Yang

0 项奖励
回复
1 解答
2,459 次查看
kef2
Senior Contributor V

Pretty simple one. You claim your function doesn't return __noreturn, and function actually returns. No forever loop inside. Either add for(;;){} at the end or remove __noreturn.

在原帖中查看解决方案

0 项奖励
回复
4 回复数
2,460 次查看
kef2
Senior Contributor V

Pretty simple one. You claim your function doesn't return __noreturn, and function actually returns. No forever loop inside. Either add for(;;){} at the end or remove __noreturn.

0 项奖励
回复
2,449 次查看
xuedongyang
Contributor II

Thank you very much, for the suggestion.

0 项奖励
回复
2,470 次查看
xuedongyang
Contributor II

Hi, Yiping,

Sorry for late response. 

The version of CW I am using is 10.3.1. Here is the screen shot for the version and project. Yes, I am using NXP's project. I have not changed the linker file. Please let me know if you need more information.

Thanks.

Xuedong

xuedongyang_0-1652923250169.png

 

0 项奖励
回复
2,509 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Can you give me the version of the CodeWarrior you are using? Do you use the project NXP sent to you? Please give more details about the project.
Have you changed the file size and linker file? From the warning, I am more worry about the _memset16 cannot be reached than "function does return"

0 项奖励
回复