This documentation is archived and is not being maintained.

Compiler Warning (level 4) C4131

'function' : uses old-style declarator

The specified function declaration is not in prototype form.

Old-style function declarations should be converted to prototype form.

Old style

// C4131.c
// compile with: /W4 /c
void addrec( name, id ) // C4131 expected
char *name;
int id;
{ }

New style

 void addrec( char *name, int id )
 { }