This documentation is archived and is not being maintained.

Compiler Warning (level 1) C4087

Error Message

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


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

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