From: Vinson Lee Date: Wed, 2 Mar 2011 08:43:09 +0000 (-0800) Subject: r300g: Silence 'control reaches end of non-void function' warning. X-Git-Tag: mesa-7.11-rc1~1713 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bbd9616838623c637e5f24bef62c068e2c9c3775;p=platform%2Fupstream%2Fmesa.git r300g: Silence 'control reaches end of non-void function' warning. Fixes this GCC warning. r300_hyperz.c: In function 'r300_get_hiz_func': r300_hyperz.c:65: warning: control reaches end of non-void function --- diff --git a/src/gallium/drivers/r300/r300_hyperz.c b/src/gallium/drivers/r300/r300_hyperz.c index 75e6e53..ecaadf4 100644 --- a/src/gallium/drivers/r300/r300_hyperz.c +++ b/src/gallium/drivers/r300/r300_hyperz.c @@ -61,6 +61,10 @@ static enum r300_hiz_func r300_get_hiz_func(struct r300_context *r300) case PIPE_FUNC_GREATER: case PIPE_FUNC_GEQUAL: return HIZ_FUNC_MIN; + + default: + assert(0); + return HIZ_FUNC_NONE; } }