Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 735 Bytes

compiler-warning-level-4-c4205.md

File metadata and controls

30 lines (24 loc) · 735 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Warning (level 4) C4205
Compiler Warning (level 4) C4205
11/04/2016
C4205
C4205
39b5108c-7230-41b4-b2fe-2293eb6aae28

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