summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2017-05-23 08:16:38 -0600
committerBrian Paul <[email protected]>2017-05-24 11:33:47 -0600
commit84233ac6613a9c49fe970df920c82af8c57dfcdb (patch)
treeec433c9877c8093c569ff1ec35b88ddd4ebedfc1 /src/gallium/drivers/svga
parentcf1adb7b1cf921262f5998681854c370c1772925 (diff)
svga: init local vars to silence uninitialized use warnings
Reviewed-by: Sinclair Yeh <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga')
-rwxr-xr-xsrc/gallium/drivers/svga/svga_msg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/svga/svga_msg.c b/src/gallium/drivers/svga/svga_msg.c
index e3f72b628f4..e0346dee751 100755
--- a/src/gallium/drivers/svga/svga_msg.c
+++ b/src/gallium/drivers/svga/svga_msg.c
@@ -293,7 +293,7 @@ struct rpc_channel {
static enum pipe_error
svga_open_channel(struct rpc_channel *channel, unsigned protocol)
{
- VMW_REG ax, bx, cx, dx, si = 0, di = 0;
+ VMW_REG ax = 0, bx = 0, cx = 0, dx = 0, si = 0, di = 0;
VMW_PORT(VMW_PORT_CMD_OPEN_CHANNEL,
(protocol | GUESTMSG_FLAG_COOKIE), si, di,
@@ -323,7 +323,7 @@ svga_open_channel(struct rpc_channel *channel, unsigned protocol)
static enum pipe_error
svga_close_channel(struct rpc_channel *channel)
{
- VMW_REG ax, bx, cx, dx, si, di;
+ VMW_REG ax = 0, bx = 0, cx = 0, dx = 0, si, di;
/* Set up additional parameters */
si = channel->cookie_high;
@@ -354,7 +354,7 @@ svga_close_channel(struct rpc_channel *channel)
static enum pipe_error
svga_send_msg(struct rpc_channel *channel, const char *msg)
{
- VMW_REG ax, bx, cx, dx, si, di, bp;
+ VMW_REG ax = 0, bx = 0, cx = 0, dx = 0, si, di, bp;
size_t msg_len = strlen(msg);
int retries = 0;