Compiler Error C2379
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Compiler Error C2379.
formal parameter number has different type when promoted
The type of the specified parameter is not compatible, through default promotions, with the type in a previous declaration. This is an error in ANSI C (/Za) and a warning with Microsoft extensions (/Ze).
The following sample generates C2379:
// C2379.c // compile with: /Za void func(); void func(char); // C2379, char promotes to int
Show: