- Notifications
You must be signed in to change notification settings - Fork5
Commit71450d7
committed
Teach compiler that ereport(>=ERROR) does not return
When elevel >= ERROR, we add an abort() call to the ereport() macro togive the compiler a hint that the ereport() expansion will not return,but the abort() isn't actually reached because the longjmp happens inerrfinish().Because the effect of ereport() varies with the elevel, we cannot usestandard compiler attributes such as noreturn for this.1 parentffdd5a0 commit71450d7
1 file changed
+6
-1
lines changedLines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
100 | 100 |
| |
101 | 101 |
| |
102 | 102 |
| |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
103 | 107 |
| |
104 | 108 |
| |
105 | 109 |
| |
106 | 110 |
| |
107 |
| - | |
| 111 | + | |
| 112 | + | |
108 | 113 |
| |
109 | 114 |
| |
110 | 115 |
| |
|
0 commit comments
Comments
(0)