[previous] 0661 [next] [U] '%s()' may not have a storage class specifier of 'static' when declared at block scope.
Explicitly undefined REFERENCE - ISO:C90-6.5.1 Storage-Class Specifiers - Semantics

A function is being declared with the static storage-class specifier at block scope. This is meaningless.

For example:


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

extern void foo(void)
{
   static int fn1(void);                /* Message 0661 */
   extern int fn2(void);                /* OK */
   /* ... */
}


MISRA C:2012 Rules applicable to message 0661:

Rule-1.3  (Required) There shall be no occurrence of undefined or critical unspecified behaviour


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