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.
In this article
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) {}