From 6a9d7659d68c8678f4e469b15c15ff0f10075746 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 13 Mar 2013 08:35:39 -0600 Subject: [PATCH] draw: init pre_clip_pos = NULL to fix optimized build warning --- src/gallium/auxiliary/draw/draw_pt_so_emit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/draw/draw_pt_so_emit.c b/src/gallium/auxiliary/draw/draw_pt_so_emit.c index 64ed5441e7c..25584a9b62e 100644 --- a/src/gallium/auxiliary/draw/draw_pt_so_emit.c +++ b/src/gallium/auxiliary/draw/draw_pt_so_emit.c @@ -148,7 +148,7 @@ static void so_emit_prim(struct pt_so_emit *so, for (i = 0; i < num_vertices; ++i) { const float (*input)[4]; - const float (*pre_clip_pos)[4]; + const float (*pre_clip_pos)[4] = NULL; int ob; input = (const float (*)[4])( -- 2.30.2