diff options
author | Brian Paul <[email protected]> | 2014-12-19 09:36:51 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2015-01-05 13:50:54 -0700 |
commit | 04e35cc4aac019fbf6ac5ea8f6d772bb6cacea8d (patch) | |
tree | bb060d25d048b845f69e7828ddb78d7117c7205f /src/gallium/auxiliary/gallivm/lp_bld_sample.c | |
parent | 5fea39ace311723dab53460ae7b51b80746e0d3f (diff) |
gallivm: silence a couple compiler warnings
Silence warnings about possibly uninitialized variables when making a
release build.
Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_sample.c')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_sample.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample.c b/src/gallium/auxiliary/gallivm/lp_bld_sample.c index 8cee994ee6d..093c8fcc748 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_sample.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_sample.c @@ -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); |