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
Solved! Go to Solution.
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.
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.
Thank you very much, for the suggestion.
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
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"