[Mesa-dev] [PATCH] i965: Mark branch unreachable in sampler state code.

Matt Turner mattst88 at gmail.com
Sun Aug 10 21:38:04 PDT 2014


Silences some uninitialized variable warnings.
---
 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 d03047b..544aa57 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. */
-- 
1.8.5.5



More information about the mesa-dev mailing list