[Mesa-dev] [PATCH 2/2] i965: Use unreachable to silence a compiler warning.
Francisco Jerez
currojerez at riseup.net
Mon Nov 4 17:57:40 PST 2013
Matt Turner <mattst88 at gmail.com> writes:
> ---
> 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
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
Looks good to me, both patches are:
Reviewed-by: Francisco Jerez <currojerez at riseup.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 229 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20131104/cd6b0ba4/attachment.pgp>
More information about the mesa-dev
mailing list