mirror of
https://github.com/xcat2/xNBA.git
synced 2024-11-26 03:09:12 +00:00
[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>
This commit is contained in:
parent
348ec33aee
commit
a87c0c4f0f
@ -46,9 +46,9 @@ static isa_probe_addr_t isa_extra_probe_addrs[] = {
|
||||
#endif
|
||||
|
||||
#define ISA_IOADDR( driver, ioidx ) \
|
||||
( ( (ioidx) < 0 ) ? \
|
||||
isa_extra_probe_addrs[ (ioidx) + ISA_EXTRA_PROBE_ADDR_COUNT ] : \
|
||||
(driver)->probe_addrs[(ioidx)] )
|
||||
( ( (ioidx) >= 0 ) ? \
|
||||
(driver)->probe_addrs[(ioidx)] : \
|
||||
*( isa_extra_probe_addrs + (ioidx) + ISA_EXTRA_PROBE_ADDR_COUNT ) )
|
||||
|
||||
static void isabus_remove ( struct root_device *rootdev );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user