Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 720 Bytes

compiler-warning-level-4-c4131.md

File metadata and controls

33 lines (26 loc) · 720 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Warning (level 4) C4131
Compiler Warning (level 4) C4131
11/04/2016
C4131
C4131
7903b3e1-454f-4be2-aa9b-230992f96a2d

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.

The following example shows an old-style function declaration:

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

The following example shows a prototype form:

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