mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
svga: init local vars to silence uninitialized use warnings
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
This commit is contained in:
parent
cf1adb7b1c
commit
84233ac661
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue