From c26c1ddd5644c40992ec050e81027b9a763bc4e5 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 4 Mar 2004 14:52:59 +0000 Subject: [PATCH] silence warnings --- src/mesa/drivers/dri/mga/mgaioctl.c | 6 +++--- src/mesa/drivers/dri/mga/mgatexmem.c | 2 +- 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 37047344747..1179be1eb66 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 01acb9ee736..18743331c6d 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; } -- 2.30.2