aboutsummaryrefslogtreecommitdiff
path: root/debug.h
diff options
context:
space:
mode:
authorXiretza <xiretza@xiretza.xyz>2021-11-19 15:51:52 +0000
committerXiretza <xiretza@xiretza.xyz>2021-11-20 10:58:44 +0000
commit02bb2768f176164099a30b74504c86e1accb7bb1 (patch)
treebd25f4e58c6538360f1f116d0449c7a41c03544e /debug.h
parentMerge branch 'letter-spacing-regression' (diff)
config: Remove some "UNREACHABLE" UB footguns
Every branch of these long if/else if/else chains returns, so the compiler can figure out on its own that the last line is never reached. If, for some reason, one of the branches does not return (as was the case after 205f1f7, fixed by b22322b), this would usually result in a compiler error ("control reaches end of non-void function"), but adding UNREACHABLE transforms this into silent undefined behaviour.
Diffstat (limited to 'debug.h')
0 files changed, 0 insertions, 0 deletions