Re: IA32 (2.6.2 - 2004-02-05.22.30) - 3 New warnings (gcc 3.2.2)
From: viro
Date: Fri Feb 06 2004 - 06:34:20 EST
On Fri, Feb 06, 2004 at 03:22:35AM -0800, John Cherry wrote:
> drivers/net/ne.c:168: warning: unused variable `irq'
> drivers/scsi/imm.c:1146: warning: `ports' might be used uninitialized in this function
> drivers/scsi/ppa.c:1006: warning: `ports' might be used uninitialized in this function
Sigh... we have
switch (dev->mode) {
case IMM_NIBBLE:
case IMM_PS2:
ports = 3;
break;
case IMM_EPP_8:
case IMM_EPP_16:
case IMM_EPP_32:
ports = 8;
break;
default: /* Never gets here */
BUG();
}
...
/* use the value of 'ports' */
IOW, gcc doesn't realize that we never return from BUG(). AFAICS, it
should. Some changes of __volatile__ semantics?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/