Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

Compiler Warning (level 4) C4205

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).

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.