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 /src/vmwarevideo.c | |
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.
Diffstat (limited to 'src/vmwarevideo.c')
-rw-r--r-- | src/vmwarevideo.c | 6 |
1 files changed, 2 insertions, 4 deletions
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 |