Commit f28f7ac
thk123
Added a warning for when function returns a value but has return void
Also included a simple regression that should produce this warning
Set the source location on the warning and use the ANSI C version of the type. Also updated regression to reflect new format.1 parent 8b535fc commit f28f7ac
File tree
3 files changed
+22
-0
lines changed- regression/ansi-c/function_return1
- src/ansi-c
3 files changed
+22
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
911 | 911 | | |
912 | 912 | | |
913 | 913 | | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
914 | 922 | | |
| 923 | + | |
915 | 924 | | |
916 | 925 | | |
917 | 926 | | |
| |||
0 commit comments