diff options
author | Brian Paul <[email protected]> | 2018-03-22 09:23:09 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2018-03-29 08:45:10 -0600 |
commit | 5cd5878a1f8cbd2d878f0941d86f33530950acb4 (patch) | |
tree | 09f7c662b7e9e33a9d35628d31753d2e7f92baab | |
parent | 0b73c86b8030a7f7cb35fc85c83eff7f2b8c24a4 (diff) |
st/mesa: silence unhandled switch case warning
And improve the unreachable() error message.
Reviewed-by: Mathias Fröhlich <[email protected]>
-rw-r--r-- | src/mesa/state_tracker/st_glsl_types.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_glsl_types.cpp b/src/mesa/state_tracker/st_glsl_types.cpp index ef7b7fa777c..baba2d414b4 100644 --- a/src/mesa/state_tracker/st_glsl_types.cpp +++ b/src/mesa/state_tracker/st_glsl_types.cpp @@ -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; |