mirror of https://github.com/xemu-project/xemu.git
Fix arm-softmmu compile
cc1: warnings being treated as errors /src/qemu/hw/pl181.c: In function 'pl181_fifo_run': /src/qemu/hw/pl181.c:185: error: 'value' may be used uninitialized in this function Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
d34f4bafa6
commit
f21126df5f
|
@ -182,7 +182,7 @@ error:
|
||||||
static void pl181_fifo_run(pl181_state *s)
|
static void pl181_fifo_run(pl181_state *s)
|
||||||
{
|
{
|
||||||
uint32_t bits;
|
uint32_t bits;
|
||||||
uint32_t value;
|
uint32_t value = 0;
|
||||||
int n;
|
int n;
|
||||||
int is_read;
|
int is_read;
|
||||||
|
|
||||||
|
@ -191,7 +191,6 @@ static void pl181_fifo_run(pl181_state *s)
|
||||||
&& !s->linux_hack) {
|
&& !s->linux_hack) {
|
||||||
if (is_read) {
|
if (is_read) {
|
||||||
n = 0;
|
n = 0;
|
||||||
value = 0;
|
|
||||||
while (s->datacnt && s->fifo_len < PL181_FIFO_LEN) {
|
while (s->datacnt && s->fifo_len < PL181_FIFO_LEN) {
|
||||||
value |= (uint32_t)sd_read_data(s->card) << (n * 8);
|
value |= (uint32_t)sd_read_data(s->card) << (n * 8);
|
||||||
s->datacnt--;
|
s->datacnt--;
|
||||||
|
|
Loading…
Reference in New Issue