[Mesa-dev] [PATCH 2/2] i965: Use unreachable to silence a compiler warning.

Matt Turner mattst88 at gmail.com
Mon Nov 4 16:43:23 PST 2013


---
 src/mesa/drivers/dri/i965/brw_reg.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mesa/drivers/dri/i965/brw_reg.h b/src/mesa/drivers/dri/i965/brw_reg.h
index e9cf892..bfc99e1 100644
--- a/src/mesa/drivers/dri/i965/brw_reg.h
+++ b/src/mesa/drivers/dri/i965/brw_reg.h
@@ -299,6 +299,7 @@ brw_vecn_reg(unsigned width, unsigned file, unsigned nr, unsigned subnr)
    default:
       assert(!"Invalid register width");
    }
+   unreachable;
 }
 
 static inline struct brw_reg
-- 
1.8.3.2



More information about the mesa-dev mailing list