diff --git a/hw/xfree86/common/xf86Bus.c b/hw/xfree86/common/xf86Bus.c index e0d980486..f0a0723f9 100644 --- a/hw/xfree86/common/xf86Bus.c +++ b/hw/xfree86/common/xf86Bus.c @@ -521,8 +521,9 @@ xf86PostProbe(void) void xf86PostScreenInit(void) { - int i; +#ifdef HAVE_PCI_DEVICE_VGAARB_INIT int vga_count; +#endif if (doFramebufferMode) { SetSIGIOForState(OPERATING); return; @@ -535,6 +536,7 @@ xf86PostScreenInit(void) #ifdef HAVE_PCI_DEVICE_VGAARB_INIT pci_device_vgaarb_get_info(NULL, &vga_count, NULL); if (vga_count > 1 && xf86Screens) { + int i; xf86Msg(X_INFO,"Number of VGA devices: %d: arbiter wrapping enabled\n", vga_count); for (i = 0; i < xf86NumScreens; i++) xf86VGAarbiterWrapFunctions(xf86Screens[i]->pScreen);