History

tccgen: Avoid warnings in callers of the type_size() function.

Warnings reported in in x86_64-gen.c and arm-gen.c: warning: ‘align’ may be used uninitialized in this function [-Wmaybe-uninitialized]

Detlef Riekenberg committed 4 years ago

Commit ac42d681 parent ecf8e5a1 file · +1 −0Browse files

Unified · Split

tccgen.c+1−0
@@ -3897,6 +3897,7 @@ ST_FUNC int type_size(CType *type, int *a) · 3896 unmodified lines
3897 return PTR_SIZE;3897 return PTR_SIZE;
3898 }3898 }
3899 } else if (IS_ENUM(type->t) && type->ref->c < 0) {3899 } else if (IS_ENUM(type->t) && type->ref->c < 0) {
3900 *a = 0;
3900 return -1; /* incomplete enum */3901 return -1; /* incomplete enum */
3901 } else if (bt == VT_LDOUBLE) {3902 } else if (bt == VT_LDOUBLE) {
3902 *a = LDOUBLE_ALIGN;3903 *a = LDOUBLE_ALIGN;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t