From: Ian Abbott Date: Thu, 13 Jan 2011 12:07:33 +0000 (+0000) Subject: pcmmio: Avoid compiler warning about uninitialized irq[1] which is out of X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=543a5b5e93e6ca9a81b7d834f25306b71a2e7cd0;p=comedi.git pcmmio: Avoid compiler warning about uninitialized irq[1] which is out of bounds of irq[] anyway (as MAX_ASICS = 1). --- diff --git a/comedi/drivers/pcmmio.c b/comedi/drivers/pcmmio.c index 477eec78..6c4da280 100644 --- a/comedi/drivers/pcmmio.c +++ b/comedi/drivers/pcmmio.c @@ -507,8 +507,10 @@ static int pcmmio_attach(comedi_device * dev, comedi_devconfig * it) if (irq[0]) { printk("irq: %u ", irq[0]); +#if MAX_ASICS > 1 if (thisboard->dio_num_asics == 2 && irq[1]) printk("second ASIC irq: %u ", irq[1]); +#endif } else { printk("(IRQ mode disabled) "); }