Warnings reported in in x86_64-gen.c and arm-gen.c: warning: ‘align’ may be used uninitialized in this function [-Wmaybe-uninitialized]
Unified · Split
| @@ -3897,6 +3897,7 @@ ST_FUNC int type_size(CType *type, int *a) · 3896 unmodified lines | ||
| 3897 | 3897 | return PTR_SIZE; |
| 3898 | 3898 | } |
| 3899 | 3899 | } else if (IS_ENUM(type->t) && type->ref->c < 0) { |
| 3900 | + *a = 0; | |
| 3900 | 3901 | return -1; /* incomplete enum */ |
| 3901 | 3902 | } else if (bt == VT_LDOUBLE) { |
| 3902 | 3903 | *a = LDOUBLE_ALIGN; |