draw/llvm: silence uninitialized variable warnings
authorBrian Paul <brianp@vmware.com>
Thu, 10 Nov 2011 22:55:13 +0000 (15:55 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 10 Nov 2011 23:00:46 +0000 (16:00 -0700)
src/gallium/auxiliary/draw/draw_llvm.c

index 01659fe76a1c03b4a4bfd36844a21e8df125b87c..296c8fdef4136617236e6bcffe677007f55ee721 100644 (file)
@@ -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;
    }
 
    /*