diff options
author | Tormod Volden <debian.tormod@gmail.com> | 2011-01-23 12:47:03 +0100 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2011-01-25 13:27:24 -0500 |
commit | 0cbb6d275726aaed648b5ea4dcff45ce14388f91 (patch) | |
tree | 7983df3fdcca7ba00ea796053fc060e4311ab41e /src/savage_video.c | |
parent | cdfbd9674ccce6d0c96c1b16ad61eac5d5648e43 (diff) |
savage: Add casts to silence build warnings
savage_exa.c: In function ‘SavageUploadToScreen’:
savage_exa.c:545: warning: passing argument 1 of ‘memcpy’ discards qualifiers from pointer target type
/usr/include/bits/string3.h:49: note: expected ‘void * restrict’ but argument is of type ‘volatile CARD32 *’
savage_video.c: In function ‘SavagePutImage’:
savage_video.c:2007: warning: format ‘%ld’ expects type ‘long int’, but argument 4 has type ‘drmSize’
savage_video.c:2007: warning: format ‘%ld’ expects type ‘long int’, but argument 5 has type ‘int’
Diffstat (limited to 'src/savage_video.c')
-rw-r--r-- | src/savage_video.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/savage_video.c b/src/savage_video.c index 3b991e8..5ee98cb 100644 --- a/src/savage_video.c +++ b/src/savage_video.c @@ -2003,8 +2003,8 @@ SavagePutImage( /* This situation is expected if AGPforXv is disabled, otherwise report. */ if (pSAVAGEDRIServer->agpXVideo.size > 0) { xf86DrvMsg( pScreen->myNum, X_ERROR, - "[agp] XVideo: not enough space in buffer (got %ld bytes, required %ld bytes).\n", - pSAVAGEDRIServer->agpXVideo.size, max(new_size, planarFrameSize)); + "[agp] XVideo: not enough space in buffer (got %ld bytes, required %d bytes).\n", + (long int)pSAVAGEDRIServer->agpXVideo.size, max(new_size, planarFrameSize)); } pPriv->agpBufferMap = NULL; pPriv->agpBufferOffset = 0; |