From 41bdad59ab1769baab94b669ab4ad51a6000713d Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sun, 10 Aug 2014 21:32:24 -0700 Subject: [PATCH] i965: Mark branch unreachable in sampler state code. Silences some uninitialized variable warnings. Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_sampler_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_sampler_state.c b/src/mesa/drivers/dri/i965/brw_sampler_state.c index d03047bb3d6..544aa57b6d1 100644 --- a/src/mesa/drivers/dri/i965/brw_sampler_state.c +++ b/src/mesa/drivers/dri/i965/brw_sampler_state.c @@ -352,7 +352,7 @@ brw_update_sampler_state(struct brw_context *brw, mip_filter = BRW_MIPFILTER_LINEAR; break; default: - break; + unreachable("not reached"); } /* Select mag filter. */ -- 2.30.2