Compiler Warning (level 4) C4205
TOC
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Compiler Warning (level 4) C4205

Error Message

nonstandard extension used : static function declaration in function scope

With Microsoft extensions (/Ze), static functions can be declared inside another function. The function is given global scope.

Example

// C4205.c
// compile with: /W4
void func1()
{
   static int func2();  // C4205
};

int main()
{
}

Such initializations are invalid under ANSI compatibility (/Za).

Show:
© 2016 Microsoft