diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2011-01-31 10:42:26 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2011-02-01 17:02:15 +0000 |
commit | c84a88d8cb298b6757ad01a12a8bbba66cb6eaa2 (patch) | |
tree | 86a87370d9d96ddf17ce862fb3d633b018caffae /qemu-x509.h | |
parent | 60f356e86d66a4a22530ec7570f7582af602d200 (diff) | |
download | qemu-c84a88d8cb298b6757ad01a12a8bbba66cb6eaa2.zip qemu-c84a88d8cb298b6757ad01a12a8bbba66cb6eaa2.tar.gz qemu-c84a88d8cb298b6757ad01a12a8bbba66cb6eaa2.tar.bz2 |
hw/slavio_intctl.c: fix gcc warning about array bounds overrun
The Ubuntu 10.10 gcc for ARM complains that we might be overrunning
the cpu_irqs[][] array: silence this by correcting the bounds on the
loop. (In fact we would not have overrun the array because bit
MAX_PILS in pil_pending and irl_out will always be 0.)
Also add a comment about why the loop's lower bound is OK.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'qemu-x509.h')
0 files changed, 0 insertions, 0 deletions