[Mesa-dev] [PATCH] llvmpipe: init some vars to NULL to silence MinGW compiler warnings
Roland Scheidegger
sroland at vmware.com
Thu May 2 16:31:19 UTC 2019
Reviewed-by: Roland Scheidegger <sroland at vmware.com>
Am 01.05.19 um 18:48 schrieb Brian Paul:
> ---
> src/gallium/auxiliary/gallivm/lp_bld_format_s3tc.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/gallium/auxiliary/gallivm/lp_bld_format_s3tc.c b/src/gallium/auxiliary/gallivm/lp_bld_format_s3tc.c
> index 9561c34..90b2be9 100644
> --- a/src/gallium/auxiliary/gallivm/lp_bld_format_s3tc.c
> +++ b/src/gallium/auxiliary/gallivm/lp_bld_format_s3tc.c
> @@ -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);
>
More information about the mesa-dev
mailing list