Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
varargs matches remaining parameters
Remarks
Under the default Microsoft extensions (/Ze), a pointer to a function matches a pointer to a function with similar, but variable, arguments.
Example
The following example generates C4220:
// C4220.c
// compile with: /W4
int ( *pFunc1) ( int a, ... );
int ( *pFunc2) ( int a, int b);
int main()
{
if ( pFunc1 != pFunc2 ) {} // C4220
}
Such pointers do not match under ANSI compatibility (/Za).