xfree86: silence 'unused variable' compiler warning
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
21f04f008e
commit
ead57a1353
|
@ -521,8 +521,9 @@ xf86PostProbe(void)
|
||||||
void
|
void
|
||||||
xf86PostScreenInit(void)
|
xf86PostScreenInit(void)
|
||||||
{
|
{
|
||||||
int i;
|
#ifdef HAVE_PCI_DEVICE_VGAARB_INIT
|
||||||
int vga_count;
|
int vga_count;
|
||||||
|
#endif
|
||||||
if (doFramebufferMode) {
|
if (doFramebufferMode) {
|
||||||
SetSIGIOForState(OPERATING);
|
SetSIGIOForState(OPERATING);
|
||||||
return;
|
return;
|
||||||
|
@ -535,6 +536,7 @@ xf86PostScreenInit(void)
|
||||||
#ifdef HAVE_PCI_DEVICE_VGAARB_INIT
|
#ifdef HAVE_PCI_DEVICE_VGAARB_INIT
|
||||||
pci_device_vgaarb_get_info(NULL, &vga_count, NULL);
|
pci_device_vgaarb_get_info(NULL, &vga_count, NULL);
|
||||||
if (vga_count > 1 && xf86Screens) {
|
if (vga_count > 1 && xf86Screens) {
|
||||||
|
int i;
|
||||||
xf86Msg(X_INFO,"Number of VGA devices: %d: arbiter wrapping enabled\n", vga_count);
|
xf86Msg(X_INFO,"Number of VGA devices: %d: arbiter wrapping enabled\n", vga_count);
|
||||||
for (i = 0; i < xf86NumScreens; i++)
|
for (i = 0; i < xf86NumScreens; i++)
|
||||||
xf86VGAarbiterWrapFunctions(xf86Screens[i]->pScreen);
|
xf86VGAarbiterWrapFunctions(xf86Screens[i]->pScreen);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user