Re: [Qemu-devel] [PATCH v2] target-arm: fix build with gcc 4.8.2

2013-12-23 Thread Peter Maydell
On 23 December 2013 14:24, Michael S. Tsirkin wrote: > Changes from v1: > added a TODO so we remember why the extra line is here. > > target-arm/cpu64.c | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/target-arm/cpu64.c b/target-arm/cpu64.c > index 04ce879..a9d6939 100644 > ---

[Qemu-devel] [PATCH v2] target-arm: fix build with gcc 4.8.2

2013-12-23 Thread Michael S. Tsirkin
commit 5ce4f35781028ce1aee3341e6002f925fdc7aaf3 "target-arm: A64: add set_pc cpu method" introduces an array aarch64_cpus which is zero size if this code is built without CONFIG_USER_ONLY. In particular an attempt to iterate over this array produces a warning under gcc 4.8.2: CCaarch64-s