Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 654 Bytes

compiler-warning-level-1-c4087.md

File metadata and controls

28 lines (22 loc) · 654 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Warning (level 1) C4087
Compiler Warning (level 1) C4087
11/04/2016
C4087
C4087
546e4d57-5c8e-422c-8ef1-92657336dad5

Compiler Warning (level 1) C4087

'function' : declared with 'void' parameter list

The function declaration has no formal parameters, but the function call has actual parameters. Extra parameters are passed according to the calling convention of the function.

This warning is for the C compiler.

Example

// C4087.c
// compile with: /W1
int f1( void ) {
}

int main() {
   f1( 10 );   // C4087
}