![]() |
![]() |
2888 | ![]() |
||||
![]() | |||||||
| Control flow | |||||||
This function has been defined with a non-void return type but ends without an explicit return statement. The value returned will be undefined. For example:
/*PRQA S 2744,2017,3408 ++*/
extern float foo(void) /* 2888 */
{
}
MISRA C:2012 Rules applicable to message 2888:
| Rule-17.4 (Mandatory) | All exit paths from a function with non-void return type shall have an explicit return statement with an expression |
![]() | ||
| QA·C Source Code Analyser 8.1
MISRA C:2012 Compliance Module 1.0 © 2012 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | MISRA C:2012 Rule Index | Contents |