![]() |
![]() |
3239 | ![]() |
||||
![]() | |||||||
| Explicitly undefined | REFERENCE - ISO:C99-6.7.4 Function specifiers - Semantics | ||||||
An inline function is being declared but no definition has been found for it within this translation unit. Behaviour will be undefined. For example:
/*PRQA S 1055,2017,3120,3210,3408 ++*/
inline int fin(int a, int b); /* 3239 */
extern int foo(int r)
{
r = r + fin(1, 2);
return r;
}
MISRA-C:2004 Rules applicable to message 3239:
| Rule 1.2 (Required) | No reliance shall be placed on undefined or unspecified behaviour. |
![]() | ||
| 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 |