From: Brian Paul Date: Thu, 10 Nov 2011 22:55:13 +0000 (-0700) Subject: draw/llvm: silence uninitialized variable warnings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1462114475709c9460a3cb0c58ae684c5843f5cd;p=mesa.git draw/llvm: silence uninitialized variable warnings --- 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; } /*