description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||
---|---|---|---|---|---|---|---|
Learn more about: Compiler Warning (level 1) C4036 |
Compiler Warning (level 1) C4036 |
11/04/2016 |
|
|
f0b15359-4d62-48ec-8cb1-a7b36587a47f |
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) {}