<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 19, 2016 at 12:51 AM, Iago Toral <span dir="ltr"><<a href="mailto:itoral@igalia.com" target="_blank">itoral@igalia.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Reviewed-by: Iago Toral Quiroga <<a href="mailto:itoral@igalia.com">itoral@igalia.com</a>><br>
<div class="HOEnZb"><div class="h5"><br>
On Fri, 2016-08-19 at 10:39 +0300, Tapani Pälli wrote:<br>
> (warning: ‘surftype’ may be used uninitialized ...)<br>
><br>
> Signed-off-by: Tapani Pälli <<a href="mailto:tapani.palli@intel.com">tapani.palli@intel.com</a>><br>
> ---<br>
>  src/mesa/drivers/dri/i965/<wbr>gen6_blorp.c | 2 ++<br>
>  src/mesa/drivers/dri/i965/<wbr>gen7_blorp.c | 2 ++<br>
>  2 files changed, 4 insertions(+)<br>
><br>
> diff --git a/src/mesa/drivers/dri/i965/<wbr>gen6_blorp.c<br>
> b/src/mesa/drivers/dri/i965/<wbr>gen6_blorp.c<br>
> index abdcf17..6476fa6 100644<br>
> --- a/src/mesa/drivers/dri/i965/<wbr>gen6_blorp.c<br>
> +++ b/src/mesa/drivers/dri/i965/<wbr>gen6_blorp.c<br>
> @@ -711,6 +711,8 @@ gen6_blorp_emit_depth_stencil_<wbr>config(struct<br>
> brw_context *brw,<br>
>     case ISL_SURF_DIM_3D:<br>
>        surftype = BRW_SURFACE_3D;<br>
>        break;<br>
> +   default:<br>
> +      unreachable("not reached");<br>
>     }<br>
>  <br>
>     /* 3DSTATE_DEPTH_BUFFER */<br>
> diff --git a/src/mesa/drivers/dri/i965/<wbr>gen7_blorp.c<br>
> b/src/mesa/drivers/dri/i965/<wbr>gen7_blorp.c<br>
> index d35d6c6..96e2b07 100644<br>
> --- a/src/mesa/drivers/dri/i965/<wbr>gen7_blorp.c<br>
> +++ b/src/mesa/drivers/dri/i965/<wbr>gen7_blorp.c<br>
> @@ -497,6 +497,8 @@ gen7_blorp_emit_depth_stencil_<wbr>config(struct<br>
> brw_context *brw,<br>
>     case ISL_SURF_DIM_3D:<br>
>        surftype = BRW_SURFACE_3D;<br>
>        break;<br>
> +   default:<br>
> +      unreachable("not reached");<br>
>     }<br></div></div></blockquote><div><br></div><div>Thanks for fixing this but I'm about to push a series that deletes all of this code and, with it, go the warnings. :)<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">
>     /* 3DSTATE_DEPTH_BUFFER */<br>
</div></div><div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</div></div></blockquote></div><br></div></div>