From 72371ff249f5811618e5019b47f1358d215c7eee Mon Sep 17 00:00:00 2001 From: Darren Reed Date: Sun, 29 Oct 2000 10:07:43 +0000 Subject: [PATCH] fix warning compile error about unused variable --- sys/dev/pci/pci.c | 2 ++ sys/pci/pci.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index 8860582865f..d35bc86a169 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -950,7 +950,9 @@ pci_add_map(device_t pcib, int b, int s, int f, int reg, u_int8_t ln2size; u_int8_t ln2range; u_int32_t testval; +#ifdef PCI_ENABLE_IO_MODES u_int16_t cmd; +#endif int type; map = PCIB_READ_CONFIG(pcib, b, s, f, reg, 4); diff --git a/sys/pci/pci.c b/sys/pci/pci.c index 8860582865f..d35bc86a169 100644 --- a/sys/pci/pci.c +++ b/sys/pci/pci.c @@ -950,7 +950,9 @@ pci_add_map(device_t pcib, int b, int s, int f, int reg, u_int8_t ln2size; u_int8_t ln2range; u_int32_t testval; +#ifdef PCI_ENABLE_IO_MODES u_int16_t cmd; +#endif int type; map = PCIB_READ_CONFIG(pcib, b, s, f, reg, 4);