This documentation is archived and is not being maintained.

Compiler Warning (level 1) C4036

unnamed 'type' as actual parameter

No type name is given for a structure, union, enumeration, or class used as an actual parameter. If you are using /Zg to generate function prototypes, the compiler issues this warning and comments out the formal parameter in the generated prototype.

Specify a type name to resolve this warning.

The following sample generates C4036.

// C4036.c
// compile with: /Zg /W1
// D9035 expected
typedef struct { int i; } T;
void f(T* t) {}   // C4036

// OK
typedef struct MyStruct { int i; } T2;
void f2(T2 * t) {}