Mesa (master): i965: add missing case to fix -Wswitch
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Oct 30 18:12:05 UTC 2018
Module: Mesa
Branch: master
Commit: 5c64847322ee6515e27eaa9c944a9afb4fefd4bc
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5c64847322ee6515e27eaa9c944a9afb4fefd4bc
Author: Eric Engestrom <eric.engestrom at intel.com>
Date: Sun Oct 28 17:58:05 2018 +0000
i965: add missing case to fix -Wswitch
While at it, turn "unreachable" assert() into unreachable().
Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
Reviewed-by: Emil Velikov <emil.velikov at collabora.com>
---
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 b6bf96706f..836f83d4a4 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;
}
More information about the mesa-commit
mailing list