Compiler Warning (level 1) C4028

 

For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

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() {}  

Show: