]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[isa] Avoid spurious compiler warning on gcc 4.7
authorMichael Brown <mcb30@ipxe.org>
Fri, 20 Jul 2012 17:32:58 +0000 (18:32 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 20 Jul 2012 17:32:58 +0000 (18:32 +0100)
commita87c0c4f0f47f5dc4b4d7050b15713a9f7a52757
tree82c0d1c82687a9e0a9a698707fb60763cf2947be
parent348ec33aee6b34edcec8e7273cf2435b4e8910b8
[isa] Avoid spurious compiler warning on gcc 4.7

gcc 4.7 produces a spurious warning about an array subscript being out
of bounds.  Use a pointer dereference instead of an array lookup to
inhibit this spurious warning.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/bus/isa.c