Fix some serious compiler warnings.

Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
This commit is contained in:
Stefan Dirsch
2011-11-01 19:39:45 +01:00
committed by Jeremy Huddleston
parent b9db7661e6
commit 3b24a2eef9
4 changed files with 4 additions and 3 deletions

View File

@@ -945,6 +945,7 @@ Volari_AccelInit(ScreenPtr pScreen)
return TRUE;
}
#endif /* EXA */
return TRUE;
}
void

View File

@@ -285,7 +285,7 @@ Bool XGIDRIScreenInit(ScreenPtr pScreen)
pDRIInfo->ddxDriverMajorVersion = PACKAGE_VERSION_MAJOR;
pDRIInfo->ddxDriverMinorVersion = PACKAGE_VERSION_MINOR;
pDRIInfo->ddxDriverPatchVersion = PACKAGE_VERSION_PATCHLEVEL;
pDRIInfo->frameBufferPhysicalAddress = pXGI->FbAddress;
pDRIInfo->frameBufferPhysicalAddress = (pointer) pXGI->FbAddress;
pDRIInfo->frameBufferSize = pXGI->FbMapSize;
/* ?? */

View File

@@ -3050,7 +3050,7 @@ XGIPreInit(ScrnInfoPtr pScrn, int flags)
);
#endif
pXGI->xgi_HwDevExt.pjIOAddress = (XGIIOADDRESS) (pXGI->RelIO + 0x30);
pXGI->xgi_HwDevExt.pjIOAddress = (pointer)((XGIIOADDRESS) (pXGI->RelIO + 0x30));
xf86DrvMsg(pScrn->scrnIndex, from, "Relocated IO registers at 0x%lX\n",
(unsigned long) pXGI->RelIO);
ErrorF("xgi_driver.c-pXGI->xgi_HwDevExt.pjIOAddress=0x%x...\n", pXGI->xgi_HwDevExt.pjIOAddress);

View File

@@ -587,7 +587,7 @@ XGI_InitHwDevInfo(ScrnInfoPtr pScrn)
PDEBUG(ErrorF("pXGI->FbBase = 0x%08lx\n",(ULONG)(pXGI->FbBase))) ;
PDEBUG(ErrorF("pHwDevInfo->pjVideoMemoryAddress = 0x%08lx\n",(ULONG)(pHwDevInfo->pjVideoMemoryAddress))) ;
pHwDevInfo->ulVideoMemorySize = pXGI->FbMapSize ;
pHwDevInfo->pjIOAddress = pXGI->RelIO + 0x30 ;
pHwDevInfo->pjIOAddress = (pointer)(pXGI->RelIO + 0x30);
switch (pXGI->Chipset) {
case PCI_CHIP_XGIXG40: