mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
anv: Use unreachable() in anv_genX.
This gets rid of unused variable warnings on genX_thing, because now the compiler will think that the unknown hardware generation case is unreachable. Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9634>
This commit is contained in:
parent
17bc587f88
commit
d7a94cae18
1 changed files with 1 additions and 1 deletions
|
|
@ -4552,7 +4552,7 @@ VK_DEFINE_NONDISP_HANDLE_CASTS(anv_performance_configuration_intel, base,
|
|||
genX_thing = &gen125_##thing; \
|
||||
break; \
|
||||
default: \
|
||||
assert(!"Unknown hardware generation"); \
|
||||
unreachable("Unknown hardware generation"); \
|
||||
} \
|
||||
genX_thing; \
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue