Commit 1c222cb
Enrico Steffinlongo
Fixed UNREACHABLE missing return warning on GCC 12
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 68af7a4 commit 1c222cb
1 file changed
+20
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
503 | | - | |
504 | | - | |
505 | | - | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
506 | 523 | | |
507 | 524 | | |
508 | 525 | | |
| |||
0 commit comments