[Mesa-dev] [PATCH] st/nine: Mark end of non-void function unreachable

Jan Vesely jan.vesely at rutgers.edu
Mon Feb 9 19:48:23 PST 2015


On Tue, 2015-02-10 at 04:43 +0100, Tobias Klausmann wrote:
> Signed-off-by: Tobias Klausmann <tobias.johannes.klausmann at mni.thm.de>
> ---
>  src/gallium/state_trackers/nine/nine_pipe.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/gallium/state_trackers/nine/nine_pipe.h b/src/gallium/state_trackers/nine/nine_pipe.h
> index 17844d5..3480aad 100644
> --- a/src/gallium/state_trackers/nine/nine_pipe.h
> +++ b/src/gallium/state_trackers/nine/nine_pipe.h
> @@ -222,7 +222,7 @@ d3d9_get_pipe_depth_format_bindings(D3DFORMAT format)
>      case D3DFMT_DF24:
>      case D3DFMT_INTZ:
>          return PIPE_BIND_DEPTH_STENCIL | PIPE_BIND_SAMPLER_VIEW;
> -    default: assert(0);
> +    default: unreachable(0);

Isn't unreachable supposed to use a string instead of 0?

>      }
>  }
>  


-- 
Jan Vesely <jan.vesely at rutgers.edu>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150209/236fed8e/attachment.sig>


More information about the mesa-dev mailing list