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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
2,534件の閲覧回数
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,464件の閲覧回数
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,465件の閲覧回数
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,454件の閲覧回数
xuedongyang
Contributor II

Thank you very much, for the suggestion.

0 件の賞賛
返信
2,475件の閲覧回数
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,514件の閲覧回数
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 件の賞賛
返信