Mesa (master): i965: Mark branch unreachable in sampler state code.

Matt Turner mattst88 at kemper.freedesktop.org
Mon Aug 11 17:38:41 UTC 2014


Module: Mesa
Branch: master
Commit: 41bdad59ab1769baab94b669ab4ad51a6000713d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=41bdad59ab1769baab94b669ab4ad51a6000713d

Author: Matt Turner <mattst88 at gmail.com>
Date:   Sun Aug 10 21:32:24 2014 -0700

i965: Mark branch unreachable in sampler state code.

Silences some uninitialized variable warnings.

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

 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. */




More information about the mesa-commit mailing list