From 1462114475709c9460a3cb0c58ae684c5843f5cd Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 10 Nov 2011 15:55:13 -0700 Subject: [PATCH] draw/llvm: silence uninitialized variable warnings --- src/gallium/auxiliary/draw/draw_llvm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/auxiliary/draw/draw_llvm.c b/src/gallium/auxiliary/draw/draw_llvm.c index 01659fe76a1..296c8fdef41 100644 --- a/src/gallium/auxiliary/draw/draw_llvm.c +++ b/src/gallium/auxiliary/draw/draw_llvm.c @@ -1251,12 +1251,14 @@ draw_llvm_generate(struct draw_llvm *llvm, struct draw_llvm_variant *variant, fetch_count = LLVMGetParam(variant_func, 4); lp_build_name(fetch_elts, "fetch_elts"); lp_build_name(fetch_count, "fetch_count"); + start = count = NULL; } else { start = LLVMGetParam(variant_func, 3); count = LLVMGetParam(variant_func, 4); lp_build_name(start, "start"); lp_build_name(count, "count"); + fetch_elts = fetch_count = NULL; } /* -- 2.30.2