From 5c64847322ee6515e27eaa9c944a9afb4fefd4bc Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Sun, 28 Oct 2018 17:58:05 +0000 Subject: i965: add missing case to fix -Wswitch While at it, turn "unreachable" assert() into unreachable(). Signed-off-by: Eric Engestrom Reviewed-by: Emil Velikov --- src/mesa/drivers/dri/i965/intel_tiled_memcpy.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/intel_tiled_memcpy.c b/src/mesa/drivers/dri/i965/intel_tiled_memcpy.c index b6bf96706f8..836f83d4a43 100644 --- a/src/mesa/drivers/dri/i965/intel_tiled_memcpy.c +++ b/src/mesa/drivers/dri/i965/intel_tiled_memcpy.c @@ -603,9 +603,10 @@ choose_copy_function(mem_copy_fn_type copy_type) case INTEL_COPY_STREAMING_LOAD: return _memcpy_streaming_load; #endif - default: - assert(!"unreachable"); + case INTEL_COPY_INVALID: + unreachable("invalid copy_type"); } + unreachable("unhandled copy_type"); return NULL; } -- cgit v1.2.3