From: Vinson Lee Date: Sun, 22 Aug 2010 06:24:28 +0000 (-0700) Subject: translate_sse: Silence uninitialized variable warnings. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2a7493ada4503db855ed35031d48fcf2a31eded3;p=mesa.git translate_sse: Silence uninitialized variable warnings. Initialize variables on error paths. --- diff --git a/src/gallium/auxiliary/translate/translate_sse.c b/src/gallium/auxiliary/translate/translate_sse.c index 06b8f32fe6b..5188e49cd50 100644 --- a/src/gallium/auxiliary/translate/translate_sse.c +++ b/src/gallium/auxiliary/translate/translate_sse.c @@ -553,6 +553,13 @@ static boolean translate_attr_convert( struct translate_sse *p, case 32: factor = get_inv_2147483647(p); break; + default: + assert(0); + factor.disp = 0; + factor.file = 0; + factor.idx = 0; + factor.mod = 0; + break; } sse_mulps(p->func, dataXMM, factor); } @@ -596,6 +603,13 @@ static boolean translate_attr_convert( struct translate_sse *p, case 32: factor = get_inv_2147483647(p); break; + default: + assert(0); + factor.disp = 0; + factor.file = 0; + factor.idx = 0; + factor.mod = 0; + break; } sse_mulps(p->func, dataXMM, factor); }