From fbd7573929ce7450b231d27262877cef7d94a758 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Tue, 26 Feb 2002 17:04:29 +0000 Subject: Initialize a variable bogusly to avoid a gcc bug that causes a spurious warning. --- sys/dev/cy/cy.c | 3 +++ sys/dev/cy/cy_isa.c | 3 +++ 2 files changed, 6 insertions(+) (limited to 'sys/dev') diff --git a/sys/dev/cy/cy.c b/sys/dev/cy/cy.c index 3d73faab0384b..992dcefcedf59 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 3d73faab0384b..992dcefcedf59 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); -- cgit v1.3