[Mesa-dev] [PATCH] nir: silence uninitialized warning

Rob Clark robdclark at gmail.com
Thu Dec 10 17:42:48 PST 2015


On Thu, Dec 10, 2015 at 7:08 PM, Timothy Arceri
<timothy.arceri at collabora.com> wrote:
>

Reviewed-by: Rob Clark <robdclark at gmail.com>

> ---
>  src/glsl/nir/nir_lower_clip.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/glsl/nir/nir_lower_clip.c b/src/glsl/nir/nir_lower_clip.c
> index e2a2bb6..36cc578 100644
> --- a/src/glsl/nir/nir_lower_clip.c
> +++ b/src/glsl/nir/nir_lower_clip.c
> @@ -217,7 +217,7 @@ nir_lower_clip_vs(nir_shader *shader, unsigned ucp_enables)
>     int position = -1;
>     int maxloc = -1;
>     nir_ssa_def *cv;
> -   nir_variable *out[2];
> +   nir_variable *out[2] = { NULL };
>
>     if (!ucp_enables)
>        return;
> --
> 2.4.3
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list