History

Add warning 3 struct st {int a;} ss; int b; b = ss;

jiang committed 12 years ago

Commit fcb37721 parent 07614b51 file · +2 −0Browse files

Unified · Split

tccgen.c+2−0
@@ -2441,6 +2441,8 @@ static void gen_assign_cast(CType *dt) · 2440 unmodified lines
24412441 if (sbt == VT_PTR || sbt == VT_FUNC) {
24422442 tcc_warning("assignment makes integer from pointer without a cast");
24432443 }
2444+ if (sbt == VT_STRUCT)
2445+ goto error;
24442446 /* XXX: more tests */
24452447 break;
24462448 case VT_STRUCT:

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