Compiler Warning (level 4) C4202

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Compiler Warning (level 4) C4202.

nonstandard extension used : '...': prototype parameter in name list illegal

An old-style function definition contains variable arguments. These definitions generate an error under ANSI compatibility (/Za).

// C4202.c  
// compile with: /W4  
void func( a, b, ...)   // C4202  
int a, b;  
{}  
  
int main()  
{  
}  

Show: