diff options
author | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2008-04-17 23:04:45 -0400 |
---|---|---|
committer | Vinay Bondhugula <vinayb@vmware.com> | 2008-04-17 23:04:45 -0400 |
commit | b6c59761e2b984be32493f35224db523dd62bcd8 (patch) | |
tree | 9ecea8a4a55e6215ac6f8529a81b6b0861e868d7 | |
parent | 7870dc715b1efe173af1e2664778e2066508e066 (diff) |
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.
-rw-r--r-- | src/vmware.c | 7 | ||||
-rw-r--r-- | src/vmware.h | 2 | ||||
-rw-r--r-- | src/vmwarectrl.c | 1 | ||||
-rw-r--r-- | 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 |