diff options
author | Bernardo Innocenti <bernie@codewiz.org> | 2008-01-14 01:43:16 +0100 |
---|---|---|
committer | Bernardo Innocenti <bernie@codewiz.org> | 2008-01-14 21:38:08 +0100 |
commit | db25e615f81ea94e1c3e82a408c09d915389d3b7 (patch) | |
tree | 2d2917836cedbf852b0f75c5848393ac15d1fb0c /src | |
parent | ba2880433912cd63c68cd81682d8e48c3cf77a09 (diff) |
amd_drv: Remove a few (harmless) warnings
Signed-off-by: Bernardo Innocenti <bernie@codewiz.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/amd_gx_driver.c | 4 | ||||
-rw-r--r-- | src/amd_lx_video.c | 24 | ||||
-rw-r--r-- | src/durango.c | 1 |
3 files changed, 21 insertions, 8 deletions
diff --git a/src/amd_gx_driver.c b/src/amd_gx_driver.c index 0f5212a..28cb067 100644 --- a/src/amd_gx_driver.c +++ b/src/amd_gx_driver.c @@ -490,7 +490,7 @@ GXPreInit(ScrnInfoPtr pScrni, int flags) &pGeode->tryHWCursor); if (!xf86GetOptValInteger(GeodeOptions, GX_OPTION_FBSIZE, - &(pGeode->FBAvail))) + (int *)&(pGeode->FBAvail))) pGeode->FBAvail = 0; /* For compatability - allow SWCursor too */ @@ -532,7 +532,7 @@ GXPreInit(ScrnInfoPtr pScrni, int flags) pGeode->NoOfColorExpandLines = 0; xf86GetOptValInteger(GeodeOptions, GX_OPTION_OSM_CLR_BUFS, - &(pGeode->exaBfrSz)); + (int *)&(pGeode->exaBfrSz)); if (pGeode->exaBfrSz <= 0) pGeode->exaBfrSz = 0; diff --git a/src/amd_lx_video.c b/src/amd_lx_video.c index cd1190c..b26ea30 100644 --- a/src/amd_lx_video.c +++ b/src/amd_lx_video.c @@ -64,6 +64,18 @@ #define MAKE_ATOM(a) MakeAtom(a, sizeof(a) - 1, TRUE) #define ARRAY_SIZE(a) (sizeof((a)) / (sizeof(*(a)))) +/* Local function prototypes */ +static void +LXStopVideo(ScrnInfoPtr pScrni, pointer data, Bool exit); + +static void +LXDisplayVideo(ScrnInfoPtr pScrni, int id, short width, short height, + BoxPtr dstBox, short srcW, short srcH, short drawW, short drawH); + +static void +LXResetVideo(ScrnInfoPtr pScrni); + + static XF86VideoEncodingRec DummyEncoding[1] = { { 0, "XV_IMAGE", 1024, 1024, {1, 1} } }; @@ -359,8 +371,8 @@ LXCopyPacked(ScrnInfoPtr pScrni, int id, unsigned char *buf, return TRUE; } -void -LXDisplayVideo(ScrnInfoPtr pScrni, int id, short width, short height, +static void +LXDisplayVideo(ScrnInfoPtr pScrni, int id, short width, short height, BoxPtr dstBox, short srcW, short srcH, short drawW, short drawH) { long ystart, xend, yend; @@ -605,8 +617,8 @@ LXSetPortAttribute(ScrnInfoPtr pScrni, return Success; } -void -LXStopVideo(ScrnInfoPtr pScrni, pointer data, Bool exit) +static void +LXStopVideo(ScrnInfoPtr pScrni, pointer data, Bool exit) { GeodePortPrivRec *pPriv = (GeodePortPrivRec *) data; GeodeRec *pGeode = GEODEPTR(pScrni); @@ -642,8 +654,8 @@ LXStopVideo(ScrnInfoPtr pScrni, pointer data, Bool exit) pPriv->offTime = currentTime.milliseconds + OFF_DELAY; } } - -void + +static void LXResetVideo(ScrnInfoPtr pScrni) { GeodeRec *pGeode = GEODEPTR(pScrni); diff --git a/src/durango.c b/src/durango.c index adc5565..a41d172 100644 --- a/src/durango.c +++ b/src/durango.c @@ -37,6 +37,7 @@ #include <unistd.h> #include <errno.h> #include <compiler.h> +#include <os.h> /* ErrorF() */ /* Compiler options */ |