mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 21:40:20 +01:00
gallivm: silence a couple compiler warnings
Silence warnings about possibly uninitialized variables when making a release build. Reviewed-by: José Fonseca <jfonseca@vmware.com>
This commit is contained in:
parent
5fea39ace3
commit
04e35cc4aa
2 changed files with 4 additions and 1 deletions
|
|
@ -411,6 +411,9 @@ lp_build_rho(struct lp_build_sample_context *bld,
|
|||
if (dims > 2) {
|
||||
ddx_ddy[1] = lp_build_abs(coord_bld, ddx_ddy[1]);
|
||||
}
|
||||
else {
|
||||
ddx_ddy[1] = NULL; /* silence compiler warning */
|
||||
}
|
||||
|
||||
if (dims < 2) {
|
||||
rho_xvec = lp_build_swizzle_aos(coord_bld, ddx_ddy[0], swizzle0);
|
||||
|
|
|
|||
|
|
@ -952,7 +952,7 @@ build_gather(struct lp_build_context *bld,
|
|||
LLVMBuilderRef builder = bld->gallivm->builder;
|
||||
LLVMValueRef res = bld->undef;
|
||||
unsigned i;
|
||||
LLVMValueRef temp_ptr;
|
||||
LLVMValueRef temp_ptr = NULL;
|
||||
|
||||
if (overflow_mask) {
|
||||
temp_ptr = lp_build_alloca(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue