[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3] target/arm: Fix compile error in gcc 4.9.4.

From: Kaige Li
Subject: Re: [PATCH v3] target/arm: Fix compile error in gcc 4.9.4.
Date: Fri, 31 Jul 2020 17:27:05 +0800
User-agent: Mozilla/5.0 (X11; Linux mips64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0

On 07/31/2020 05:20 PM, Peter Maydell wrote:

On Fri, 31 Jul 2020 at 10:07, Kaige Li <likaige@loongson.cn> wrote:
Error log:

/home/LiKaige/qemu/target/arm/translate-a64.c: In function ‘disas_ldst’:
/home/LiKaige/qemu/target/arm/translate-a64.c:3392:5: error: ‘fn’ may be used 
uninitialized in this function [-Werror=maybe-uninitialized]
      fn(cpu_reg(s, rt), clean_addr, tcg_rs, get_mem_index(s),
/home/LiKaige/qemu/target/arm/translate-a64.c:3318:22: note: ‘fn’ was declared 
      AtomicThreeOpFn *fn;
cc1: all warnings being treated as errors

Add an initiallization value NULL for fn to fix this.
As I said, I've already applied this patch to target-arm.next,
so you don't need to do anything further. It'll get into
master probably on Monday.
Ok, Thank you.

-- PMM

reply via email to

[Prev in Thread] Current Thread [Next in Thread]