From b6c59761e2b984be32493f35224db523dd62bcd8 Mon Sep 17 00:00:00 2001 From: Paulo Cesar Pereira de Andrade Date: Thu, 17 Apr 2008 23:04:45 -0400 Subject: Compile warning fixes Major problem was prototype vmwareInitVideo not matching implementation vmwareVideoInit. Remaining are adding an "ansification" of a function without arguments, and removing/disabling unused variables/functions. --- src/vmware.c | 7 ++----- src/vmware.h | 2 +- src/vmwarectrl.c | 1 - src/vmwarevideo.c | 6 ++---- 4 files changed, 5 insertions(+), 11 deletions(-) diff --git a/src/vmware.c b/src/vmware.c index ebb480b..e4d149d 100644 --- a/src/vmware.c +++ b/src/vmware.c @@ -386,7 +386,7 @@ VMXGetVMwareSvgaId(VMWAREPtr pVMWARE) return SVGA_ID_INVALID; } - +#ifndef XSERVER_LIBPCIACCESS /* *---------------------------------------------------------------------- * @@ -432,6 +432,7 @@ RewriteTagString(const char *istr, char *ostr, int osize) *op++ = chr; } while (chr); } +#endif static void VMWAREIdentify(int flags) @@ -1766,8 +1767,6 @@ static void VMWARELeaveVT(int scrnIndex, int flags) { ScrnInfoPtr pScrn = xf86Screens[scrnIndex]; - VMWAREPtr pVMWARE = VMWAREPTR(pScrn); - VMWARERestore(pScrn); } @@ -1796,8 +1795,6 @@ VMwarePciProbe (DriverPtr drv, { ScrnInfoPtr scrn = NULL; EntityInfoPtr entity; - /*I830EntPtr i830_ent = NULL;*/ - DevUnion *private; scrn = xf86ConfigPciEntity(scrn, 0, entity_num, VMWAREPciChipsets, NULL, NULL, NULL, NULL, NULL); diff --git a/src/vmware.h b/src/vmware.h index ac93706..63bb831 100644 --- a/src/vmware.h +++ b/src/vmware.h @@ -272,7 +272,7 @@ void VMwareCtrl_ExtInit(ScrnInfoPtr pScrn); void VMwareXinerama_ExtInit(ScrnInfoPtr pScrn); /* vmwarevideo.c */ -Bool vmwareInitVideo( +Bool vmwareVideoInit( ScreenPtr pScreen ); void vmwareVideoEnd( diff --git a/src/vmwarectrl.c b/src/vmwarectrl.c index dc9e91f..24865d6 100644 --- a/src/vmwarectrl.c +++ b/src/vmwarectrl.c @@ -311,7 +311,6 @@ VMwareCtrlSetTopology(ClientPtr client) ExtensionEntry *ext; register int n; xXineramaScreenInfo *extents; - size_t i; REQUEST_AT_LEAST_SIZE(xVMwareCtrlSetTopologyReq); diff --git a/src/vmwarevideo.c b/src/vmwarevideo.c index 613991c..d6ff4b7 100644 --- a/src/vmwarevideo.c +++ b/src/vmwarevideo.c @@ -224,7 +224,7 @@ static void vmwareVideoEndStream(ScrnInfoPtr pScrn, VMWAREVideoPtr pVid); /* * Offscreen memory manager functions */ -static void vmwareOffscreenInit(); +static void vmwareOffscreenInit(void); static VMWAREOffscreenPtr vmwareOffscreenAllocate(VMWAREPtr pVMWARE, uint32 size); static void vmwareOffscreenFree(VMWAREOffscreenPtr memptr); @@ -282,7 +282,7 @@ vmwareCheckVideoSanity(ScrnInfoPtr pScrn) */ static void -vmwareOffscreenInit() +vmwareOffscreenInit(void) { offscreenMgr.size = 0; offscreenMgr.offset = 0; @@ -415,7 +415,6 @@ Bool vmwareVideoEnabled(VMWAREPtr pVMWARE) Bool vmwareVideoInit(ScreenPtr pScreen) { ScrnInfoPtr pScrn = infoFromScreen(pScreen); - VMWAREPtr pVMWARE = VMWAREPTR(pScrn); XF86VideoAdaptorPtr *overlayAdaptors, *newAdaptors = NULL; XF86VideoAdaptorPtr newAdaptor = NULL; int numAdaptors; @@ -615,7 +614,6 @@ static int vmwareVideoInitStream(ScrnInfoPtr pScrn, VMWAREVideoPtr pVid, unsigned char *buf, short width, short height) { VMWAREPtr pVMWARE = VMWAREPTR(pScrn); - ScreenPtr pScreen = pScrn->pScreen; int i; TRACEPOINT -- cgit v1.2.3