summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/translate
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-08-21 23:24:28 -0700
committerVinson Lee <vlee@vmware.com>2010-08-21 23:24:28 -0700
commit2a7493ada4503db855ed35031d48fcf2a31eded3 (patch)
tree735430f503ebe7135d723bf4cd6fd83134aa53bb /src/gallium/auxiliary/translate
parent172953ef3a481612aa3bc9894941c2f9d34f509e (diff)
translate_sse: Silence uninitialized variable warnings.
Initialize variables on error paths.
Diffstat (limited to 'src/gallium/auxiliary/translate')
-rw-r--r--src/gallium/auxiliary/translate/translate_sse.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/translate/translate_sse.c b/src/gallium/auxiliary/translate/translate_sse.c
index 06b8f32fe6..5188e49cd5 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);
}