შენიშვნა
ამ გვერდზე წვდომა მოითხოვს ავტორიზაციას. შეგიძლიათ სცადოთ შესვლა ან შეცვალოთ დირექტორიები.
ამ გვერდზე წვდომა მოითხოვს ავტორიზაციას. შეგიძლიათ სცადოთ დირექტორიების შეცვლა.
controlling expression has type 'type'
Remarks
The controlling expression in an if, while, for, or do statement is an expression cast to void. To fix this issue, change the controlling expression to one that produces a bool or a type that can be converted to bool.
Example
The following example generates C2180:
// C2180.c
int main() {
while ((void)1) // C2180
return 1;
while (1) // OK
return 0;
}