[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:2004 Rules applicable to message 0661:

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