diff options
author | bde <bde@FreeBSD.org> | 2002-02-26 17:04:29 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2002-02-26 17:04:29 +0000 |
commit | 1db171521516daa282d3ded476eaf5454f2b0a42 (patch) | |
tree | 67d007cbe35d2bfeb50139fd423e648763a73661 /sys | |
parent | f7cd13562c1a3c4b95feda785b5e7f2402b10cdc (diff) | |
download | FreeBSD-src-1db171521516daa282d3ded476eaf5454f2b0a42.zip FreeBSD-src-1db171521516daa282d3ded476eaf5454f2b0a42.tar.gz |
Initialize a variable bogusly to avoid a gcc bug that causes a spurious
warning.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/cy/cy.c | 3 | ||||
-rw-r--r-- | sys/dev/cy/cy_isa.c | 3 | ||||
-rw-r--r-- | sys/i386/isa/cy.c | 3 |
3 files changed, 9 insertions, 0 deletions
diff --git a/sys/dev/cy/cy.c b/sys/dev/cy/cy.c index 3d73faa..992dcef 100644 --- a/sys/dev/cy/cy.c +++ b/sys/dev/cy/cy.c @@ -487,6 +487,9 @@ cy_units(cy_iobase, cy_align) cd_outb(iobase, CD1400_CCR, cy_align, CD1400_CCR_CMDRESET | CD1400_CCR_FULLRESET); + /* XXX bogus initialization to avoid a gcc bug/warning. */ + firmware_version = 0; + /* wait for the CD1400 to initialize itself */ for (i = 0; i < 200; i++) { DELAY(50); diff --git a/sys/dev/cy/cy_isa.c b/sys/dev/cy/cy_isa.c index 3d73faa..992dcef 100644 --- a/sys/dev/cy/cy_isa.c +++ b/sys/dev/cy/cy_isa.c @@ -487,6 +487,9 @@ cy_units(cy_iobase, cy_align) cd_outb(iobase, CD1400_CCR, cy_align, CD1400_CCR_CMDRESET | CD1400_CCR_FULLRESET); + /* XXX bogus initialization to avoid a gcc bug/warning. */ + firmware_version = 0; + /* wait for the CD1400 to initialize itself */ for (i = 0; i < 200; i++) { DELAY(50); diff --git a/sys/i386/isa/cy.c b/sys/i386/isa/cy.c index 3d73faa..992dcef 100644 --- a/sys/i386/isa/cy.c +++ b/sys/i386/isa/cy.c @@ -487,6 +487,9 @@ cy_units(cy_iobase, cy_align) cd_outb(iobase, CD1400_CCR, cy_align, CD1400_CCR_CMDRESET | CD1400_CCR_FULLRESET); + /* XXX bogus initialization to avoid a gcc bug/warning. */ + firmware_version = 0; + /* wait for the CD1400 to initialize itself */ for (i = 0; i < 200; i++) { DELAY(50); |