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-Tag: 062012170305~17580^2~390^2~1748 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f9b1d47d652778012fd35552ffc51717ac0b6f79;p=profile%2Fivi%2Fmesa.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 34da635..5b63f97 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;