Moderators: misra-c, david ward
- Posts: 109
- Joined: Wed Apr 27, 2016 2:33 pm
- Company: Elektrobit Automotive GmbH
Typically, on embedded systems with a simple RTOS, main is used as background task, so it never returns:
Code: Select all
return 0;// Violates MISRA C 2012 2.1: unreachable code
Would this be a candidate for your deviation permits document?
- Posts: 566
- Joined: Thu Jan 05, 2006 1:11 pm
Thank you for your suggestion for a deviation permit.
Posted by and on behalf of
the MISRA C Working Group