From: Daniel Stone Date: Fri, 5 May 2017 17:24:44 +0000 (+0100) Subject: i915: Fix build break with empty unreachable() X-Git-Tag: upstream/18.1.0~10091 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d4342b1398a001af1192497ca4db3a304f98c309;p=platform%2Fupstream%2Fmesa.git i915: Fix build break with empty unreachable() Actually put something in unreachable(), so as not to break the build on a Friday evening. Signed-off-by: Daniel Stone Reported-by: Mark Janes --- diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c index 00ab307..3717728 100644 --- a/src/mesa/drivers/dri/i965/intel_screen.c +++ b/src/mesa/drivers/dri/i965/intel_screen.c @@ -309,8 +309,7 @@ modifier_to_tiling(uint64_t modifier) return tiling_modifier_map[i].tiling; } - assert(0 && "modifier_to_tiling should only receive known modifiers"); - unreachable(); + unreachable("modifier_to_tiling should only receive known modifiers"); } static uint64_t @@ -323,8 +322,7 @@ tiling_to_modifier(uint32_t tiling) return tiling_modifier_map[i].modifier; } - assert(0 && "tiling_to_modifier received unknown tiling mode"); - unreachable(); + unreachable("tiling_to_modifier received unknown tiling mode"); } static void