[previous] 3221 [next] Function with external linkage declared at block scope.
Declarations and Definitions

A function with external linkage has been declared at block scope.

For example:


/*PRQA S 2017,2211,3199,3203,3205,3227,3408,3447 ++*/

void foo(int a)
{
    extern int myfunc(int x);    /* Message 3221 */
    extern int gx;               /* Message 3222 */
    int r;

    r = myfunc(a);

}


MISRA C:2012 Rules applicable to message 3221:

Rule-8.5  (Required) An external object or function shall be declared once in one and only one file


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