From f753320f0fd2be61c0fa99cffb1c3e5107109c4e Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 4 Mar 2004 14:56:34 +0000 Subject: casts to silence warnings --- src/mesa/drivers/dri/r128/r128_tex.c | 4 ++-- src/mesa/drivers/dri/r128/r128_texmem.c | 2 +- src/mesa/drivers/dri/r128/r128_texstate.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/mesa/drivers') diff --git a/src/mesa/drivers/dri/r128/r128_tex.c b/src/mesa/drivers/dri/r128/r128_tex.c index 0974d62201d..1fd12456e1b 100644 --- a/src/mesa/drivers/dri/r128/r128_tex.c +++ b/src/mesa/drivers/dri/r128/r128_tex.c @@ -147,7 +147,7 @@ static r128TexObjPtr r128AllocTexObj( struct gl_texture_object *texObj ) r128TexObjPtr t; if ( R128_DEBUG & DEBUG_VERBOSE_API ) { - fprintf( stderr, "%s( %p )\n", __FUNCTION__, texObj ); + fprintf( stderr, "%s( %p )\n", __FUNCTION__, (void *) texObj ); } t = (r128TexObjPtr) CALLOC_STRUCT( r128_tex_obj ); @@ -557,7 +557,7 @@ static void r128BindTexture( GLcontext *ctx, GLenum target, struct gl_texture_object *tObj ) { if ( R128_DEBUG & DEBUG_VERBOSE_API ) { - fprintf( stderr, "%s( %p ) unit=%d\n", __FUNCTION__, tObj, + fprintf( stderr, "%s( %p ) unit=%d\n", __FUNCTION__, (void *) tObj, ctx->Texture.CurrentUnit ); } diff --git a/src/mesa/drivers/dri/r128/r128_texmem.c b/src/mesa/drivers/dri/r128/r128_texmem.c index 63ef0f17b44..595d8d75133 100644 --- a/src/mesa/drivers/dri/r128/r128_texmem.c +++ b/src/mesa/drivers/dri/r128/r128_texmem.c @@ -245,7 +245,7 @@ void r128UploadTexImages( r128ContextPtr rmesa, r128TexObjPtr t ) if ( R128_DEBUG & DEBUG_VERBOSE_API ) { fprintf( stderr, "%s( %p, %p )\n", - __FUNCTION__, rmesa->glCtx, t ); + __FUNCTION__, (void *) rmesa->glCtx, (void *) t ); } assert(t); diff --git a/src/mesa/drivers/dri/r128/r128_texstate.c b/src/mesa/drivers/dri/r128/r128_texstate.c index 3965bbdb399..89eda8acfb3 100644 --- a/src/mesa/drivers/dri/r128/r128_texstate.c +++ b/src/mesa/drivers/dri/r128/r128_texstate.c @@ -61,7 +61,7 @@ static void r128SetTexImages( r128ContextPtr rmesa, assert(baseImage); if ( R128_DEBUG & DEBUG_VERBOSE_API ) - fprintf( stderr, "%s( %p )\n", __FUNCTION__, tObj ); + fprintf( stderr, "%s( %p )\n", __FUNCTION__, (void *) tObj ); switch (baseImage->TexFormat->MesaFormat) { case MESA_FORMAT_ARGB8888: @@ -204,7 +204,7 @@ static GLboolean r128UpdateTextureEnv( GLcontext *ctx, int unit ) if ( R128_DEBUG & DEBUG_VERBOSE_API ) { fprintf( stderr, "%s( %p, %d )\n", - __FUNCTION__, ctx, unit ); + __FUNCTION__, (void *) ctx, (void *) unit ); } if ( unit == 0 ) { -- cgit v1.2.3