![]() |
![]() |
1302 | ![]() |
||||
![]() | |||||||
| Functions | REFERENCE - ISO:C90-6.3.2.2 Function Calls - Semantics | ||||||
A function is being used for which there is no previous definition or declaration, and so in accordance with the ISO:C Standard an implicit declaration is being inserted. It is not good practice to call a function without declaring it first. ISO:C90 allows this practice, but it is not permitted in either C99 or C++. Message 1302 is functionally equivalent to message 3335. For example:
/*PRQA S 2017,3210,3205,3408,3447 ++*/
int foo(void)
{
int r;
r = func(0); /* Messages 1302 and 3335 */
return r;
}
No MISRA C:2012 Rules applicable to message 1302
See also:
![]() | ||
| 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 |