llvmpipe: init some vars to NULL to silence MinGW compiler warnings
authorBrian Paul <brianp@vmware.com>
Wed, 1 May 2019 16:47:15 +0000 (10:47 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 2 May 2019 02:06:54 +0000 (20:06 -0600)
Reviewed-by: Neha Bhende <bhenden@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_format_s3tc.c

index 9561c349dad0a726b0dd666e8a9974b7f40cf453..90b2be981e4ee43fa2278f784b49762fb453833f 100644 (file)
@@ -2191,7 +2191,7 @@ lp_build_fetch_s3tc_rgba_aos(struct gallivm_state *gallivm,
       rgba = LLVMGetUndef(i128_vectype);
 
       for (count = 0; count < n / 4; count++) {
-         LLVMValueRef colors, codewords, alpha_lo, alpha_hi;
+         LLVMValueRef colors, codewords, alpha_lo = NULL, alpha_hi = NULL;
 
          i4 = lp_build_extract_range(gallivm, i, count * 4, 4);
          j4 = lp_build_extract_range(gallivm, j, count * 4, 4);
@@ -2230,7 +2230,7 @@ lp_build_fetch_s3tc_rgba_aos(struct gallivm_state *gallivm,
       rgba = LLVMBuildBitCast(builder, rgba, i8_vectype, "");
    }
    else {
-      LLVMValueRef colors, codewords, alpha_lo, alpha_hi;
+      LLVMValueRef colors, codewords, alpha_lo = NULL, alpha_hi = NULL;
 
       lp_build_gather_s3tc(gallivm, n, format_desc, &colors, &codewords,
                            &alpha_lo, &alpha_hi, base_ptr, offset);