Commit 7c15f2b
Enrico Steffinlongo
Fixed UNIMPLEMENTED_FEATURE missing return warning
GCC 12 when using `-O0` fails because of a missing-return-statement
warning caused by the implementation of `INVARIANT(false)`.
This is because the condition `if (true)` is not considered exahustive.
The solution involves marking the unreachable path as
`__builtin_unreachable()`.1 parent 1c222cb commit 7c15f2b
1 file changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
531 | 531 | | |
532 | 532 | | |
533 | 533 | | |
534 | | - | |
535 | | - | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
536 | 545 | | |
537 | 546 | | |
538 | 547 | | |
| |||
0 commit comments