Export (0) Print
Expand All
Expand Minimize

Compiler Warning (level 1) C4028

Error Message

formal parameter 'number' different from declaration

The type of the formal parameter does not agree with the corresponding parameter in the declaration. The type in the original declaration is used.

This warning is only valid for C source code.


The following sample generates C4028.

// C4028.c
// compile with: /W1 /Za
void f(int , ...);
void f(int i, int j) {}   // C4028

void g(int , int);
void g(int i, int j) {}   // OK

int main() {}

Community Additions

© 2015 Microsoft