From a3c26d01a16e4ae20a5d1acf9d888e95760c3da1 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 21 Jun 2006 14:38:07 -0700 Subject: [PATCH] Move declaration of "j" inside #ifdef block where it is used to eliminate compiler warning. --- hw/xfree86/common/xf86pciBus.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/xfree86/common/xf86pciBus.c b/hw/xfree86/common/xf86pciBus.c index fa88e74ca..44c43fce6 100644 --- a/hw/xfree86/common/xf86pciBus.c +++ b/hw/xfree86/common/xf86pciBus.c @@ -131,7 +131,7 @@ xf86FormatPciBusNumber(int busnum, char *buffer) static void FindPCIVideoInfo(void) { - int i = 0, j, k; + int i = 0, k; int num = 0; struct pci_device * info; struct pci_slot_match m; @@ -180,6 +180,8 @@ FindPCIVideoInfo(void) if ((PCISHAREDIOCLASSES( info->device_class )) && (pcrp->pci_command & PCI_CMD_IO_ENABLE) && (pcrp->pci_prog_if == 0)) { + int j; + /* * Attempt to ensure that VGA is actually routed to this * adapter on entry. This needs to be fixed when we finally