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
2441 if (sbt == VT_PTR || sbt == VT_FUNC) {2441 if (sbt == VT_PTR || sbt == VT_FUNC) {
2442 tcc_warning("assignment makes integer from pointer without a cast");2442 tcc_warning("assignment makes integer from pointer without a cast");
2443 }2443 }
2444 if (sbt == VT_STRUCT)
2445 goto error;
2444 /* XXX: more tests */2446 /* XXX: more tests */
2445 break;2447 break;
2446 case VT_STRUCT:2448 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