summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/savage/savagespan.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-09-01 03:19:45 +0000
committerBrian Paul <[email protected]>2005-09-01 03:19:45 +0000
commitf069e74dd8250e03b5891f13e869dfcd1b49ecaf (patch)
tree01b7e3579195d42447340af7b4372d7b185a55a7 /src/mesa/drivers/dri/savage/savagespan.c
parent5545245fe794519db577b2e8208277cd8fc7d276 (diff)
use proper datatypes to silence a bunch of warnings
Diffstat (limited to 'src/mesa/drivers/dri/savage/savagespan.c')
-rw-r--r--src/mesa/drivers/dri/savage/savagespan.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/savage/savagespan.c b/src/mesa/drivers/dri/savage/savagespan.c
index a261299cc5c..2158391c103 100644
--- a/src/mesa/drivers/dri/savage/savagespan.c
+++ b/src/mesa/drivers/dri/savage/savagespan.c
@@ -42,9 +42,9 @@
GLubyte *buf = map + \
dPriv->x * cpp + \
dPriv->y * pitch; \
- char *read_buf = buf; \
+ GLubyte *read_buf = buf; \
GLuint p; \
- (void) p
+ (void) p; (void) read_buf;
#define LOCAL_DEPTH_VARS \
savageContextPtr imesa = SAVAGE_CONTEXT(ctx); \
@@ -193,7 +193,7 @@ static void savageDDSetBuffer(GLcontext *ctx, GLframebuffer *buffer,
GLuint bufferBit)
{
savageContextPtr imesa = SAVAGE_CONTEXT(ctx);
- char *map;
+ GLubyte *map;
assert((bufferBit == BUFFER_BIT_FRONT_LEFT) || (bufferBit == BUFFER_BIT_BACK_LEFT));
@@ -266,7 +266,6 @@ static void savageSpanRenderStart( GLcontext *ctx )
void savageDDInitSpanFuncs( GLcontext *ctx )
{
- savageContextPtr imesa = SAVAGE_CONTEXT(ctx);
struct swrast_device_driver *swdd = _swrast_GetDeviceDriverReference(ctx);
swdd->SetBuffer = savageDDSetBuffer;