summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2004-03-04 14:52:59 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2004-03-04 14:52:59 +0000
commitc26c1ddd5644c40992ec050e81027b9a763bc4e5 (patch)
tree1e589eca7ad5a906890237d1815967b41ca521e2
parent94ec525ba5bc763210b1fb0198beeee2fe601b99 (diff)
silence warnings
-rw-r--r--src/mesa/drivers/dri/mga/mgaioctl.c6
-rw-r--r--src/mesa/drivers/dri/mga/mgatexmem.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/mga/mgaioctl.c b/src/mesa/drivers/dri/mga/mgaioctl.c
index 3704734474..1179be1eb6 100644
--- a/src/mesa/drivers/dri/mga/mgaioctl.c
+++ b/src/mesa/drivers/dri/mga/mgaioctl.c
@@ -390,7 +390,7 @@ void mgaCopyBuffer( const __DRIdrawablePrivate *dPriv )
/* This is overkill
*/
-void mgaFinish( GLcontext *ctx )
+static void mgaFinish( GLcontext *ctx )
{
mgaContextPtr mmesa = MGA_CONTEXT(ctx);
@@ -588,7 +588,7 @@ void mgaGetILoadBufferLocked( mgaContextPtr mmesa )
{
if (MGA_DEBUG&DEBUG_VERBOSE_IOCTL)
fprintf(stderr, "mgaGetIloadBuffer (buffer now %p)\n",
- mmesa->iload_buffer);
+ (void *) mmesa->iload_buffer);
mmesa->iload_buffer = mga_get_buffer_ioctl( mmesa );
}
@@ -600,7 +600,7 @@ drmBufPtr mgaGetBufferLocked( mgaContextPtr mmesa )
-void mgaFlush( GLcontext *ctx )
+static void mgaFlush( GLcontext *ctx )
{
mgaContextPtr mmesa = MGA_CONTEXT( ctx );
diff --git a/src/mesa/drivers/dri/mga/mgatexmem.c b/src/mesa/drivers/dri/mga/mgatexmem.c
index 01acb9ee73..18743331c6 100644
--- a/src/mesa/drivers/dri/mga/mgatexmem.c
+++ b/src/mesa/drivers/dri/mga/mgatexmem.c
@@ -115,7 +115,7 @@ static void mgaUploadSubImage( mgaContextPtr mmesa,
if (texImage->Data == NULL) {
fprintf(stderr, "null texture image data tObj %p level %d\n",
- t->base.tObj, level);
+ (void *) t->base.tObj, level);
return;
}