From: Chia-I Wu Date: Fri, 14 Jun 2013 07:26:07 +0000 (+0800) Subject: ilo: silence a compiler warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0d9afaad35e108f9f5f124d31c2cb7e3e052851e;p=mesa.git ilo: silence a compiler warning The path should never be hit. --- diff --git a/src/gallium/drivers/ilo/shader/ilo_shader_vs.c b/src/gallium/drivers/ilo/shader/ilo_shader_vs.c index 45bc26e0a5d..3563d0b9114 100644 --- a/src/gallium/drivers/ilo/shader/ilo_shader_vs.c +++ b/src/gallium/drivers/ilo/shader/ilo_shader_vs.c @@ -458,6 +458,8 @@ vs_prepare_tgsi_sampling(struct toy_compiler *tc, const struct toy_inst *inst, break; default: assert(!"unhandled sampling opcode"); + if (ret_sampler_index) + *ret_sampler_index = 0; return tsrc_null(); break; }