From: Eric Engestrom Date: Sun, 28 Oct 2018 17:58:05 +0000 (+0000) Subject: i965: add missing case to fix -Wswitch X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5c64847322ee6515e27eaa9c944a9afb4fefd4bc;p=mesa.git i965: add missing case to fix -Wswitch While at it, turn "unreachable" assert() into unreachable(). Signed-off-by: Eric Engestrom Reviewed-by: Emil Velikov --- 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; }