mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
st/mesa: silence unhandled switch case warning
And improve the unreachable() error message. Reviewed-by: Mathias Fröhlich <mathias.froehlich@web.de>
This commit is contained in:
parent
0b73c86b80
commit
5cd5878a1f
1 changed files with 2 additions and 1 deletions
|
|
@ -146,7 +146,8 @@ st_glsl_type_dword_size(const struct glsl_type *type)
|
|||
case GLSL_TYPE_ERROR:
|
||||
case GLSL_TYPE_INTERFACE:
|
||||
case GLSL_TYPE_FUNCTION:
|
||||
unreachable("not reached");
|
||||
default:
|
||||
unreachable("invalid type in st_glsl_type_dword_size()");
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue