[previous] 3335 [next] No function declaration. Implicit declaration inserted: 'extern int %s();'.
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 use a function which has not been previously declared.

Message 3335 is functionally equivalent to message 1302.

For example:


/*PRQA S 2017,3210,3205,3408,3447 ++*/

int foo(void)
{
    int r;

    r = func(0);                  /* Messages 3335 and 1302 */

    return r;
}


MISRA C:2012 Rules applicable to message 3335:

Rule-17.3  (Mandatory) A function shall not be declared implicitly


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