aboutsummaryrefslogtreecommitdiff
path: root/hw/arm
diff options
context:
space:
mode:
authorKaige Li <likaige@loongson.cn>2020-08-03 17:55:04 +0100
committerPeter Maydell <peter.maydell@linaro.org>2020-08-03 17:55:04 +0100
commit88a90e3de6ae99cbcfcc04c862c51f241fdf685f (patch)
treeb48f6c9890a69632f39c1ca543918e0c429053b6 /hw/arm
parent8796fe40dd30cd9ffd3c958906471715c923b341 (diff)
downloadqemu-88a90e3de6ae99cbcfcc04c862c51f241fdf685f.zip
qemu-88a90e3de6ae99cbcfcc04c862c51f241fdf685f.tar.gz
qemu-88a90e3de6ae99cbcfcc04c862c51f241fdf685f.tar.bz2
target/arm: Avoid maybe-uninitialized warning with gcc 4.9
GCC version 4.9.4 isn't clever enough to figure out that all execution paths in disas_ldst() that use 'fn' will have initialized it first, and so it warns: /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 here AtomicThreeOpFn *fn; ^ Make it happy by initializing the variable to NULL. Signed-off-by: Kaige Li <likaige@loongson.cn> Message-id: 1596110248-7366-2-git-send-email-likaige@loongson.cn Reviewed-by: Peter Maydell <peter.maydell@linaro.org> [PMM: Clean up commit message and note which gcc version this was] Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/arm')
0 files changed, 0 insertions, 0 deletions