![]() |
![]() |
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:2004 Rules applicable to message 2888:
| Rule 16.8 (Required) | 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:2004 Compliance Module 3.2 © 2012 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | MISRA-C:2004 Rule Index | Contents |