შენიშვნა
ამ გვერდზე წვდომა მოითხოვს ავტორიზაციას. შეგიძლიათ სცადოთ შესვლა ან შეცვალოთ დირექტორიები.
ამ გვერდზე წვდომა მოითხოვს ავტორიზაციას. შეგიძლიათ სცადოთ დირექტორიების შეცვლა.
unnamed 'type' as actual parameter
Remarks
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.
Example
The following example generates C4036 and shows how to fix it by providing a type name.
// 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) {}