From: Keith Whitwell Date: Tue, 22 Apr 2008 14:15:21 +0000 (+0100) Subject: softpipe: do something sensible on an error path, squash warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f9b1d47d652778012fd35552ffc51717ac0b6f79;p=mesa.git softpipe: do something sensible on an error path, squash warning --- diff --git a/src/gallium/drivers/softpipe/sp_tex_sample.c b/src/gallium/drivers/softpipe/sp_tex_sample.c index 34da6356d70..5b63f979977 100644 --- a/src/gallium/drivers/softpipe/sp_tex_sample.c +++ b/src/gallium/drivers/softpipe/sp_tex_sample.c @@ -651,7 +651,9 @@ shadow_compare(uint compare_func, k = 0; break; default: + k = 0; assert(0); + break; } rgba[0][j] = rgba[1][j] = rgba[2][j] = (float) k;