diff options
author | brianp <brianp> | 2001-02-23 20:12:17 +0000 |
---|---|---|
committer | brianp <brianp> | 2001-02-23 20:12:17 +0000 |
commit | 407f2d097192edbf565b65a3cf31f5f724163066 (patch) | |
tree | 23c4aa403629b628e530c63045cda93f6d6bdc76 | |
parent | f38ef2e34b54305482d40baa8dbce7fe64d43de5 (diff) |
silence compiler warnings
-rw-r--r-- | xc/lib/GL/mesa/src/drv/mga/mgaioctl.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/xc/lib/GL/mesa/src/drv/mga/mgaioctl.c b/xc/lib/GL/mesa/src/drv/mga/mgaioctl.c index 07659b509..84c76bb75 100644 --- a/xc/lib/GL/mesa/src/drv/mga/mgaioctl.c +++ b/xc/lib/GL/mesa/src/drv/mga/mgaioctl.c @@ -28,7 +28,7 @@ static void mga_iload_dma_ioctl(mgaContextPtr mmesa, if (MGA_DEBUG&DEBUG_VERBOSE_IOCTL) fprintf(stderr, "DRM_IOCTL_MGA_ILOAD idx %d dst %x length %d\n", - buf->idx, dest, length); + buf->idx, (int) dest, length); ret = drmMGATextureLoad( mmesa->driFd, buf->idx, dest, length ); if ( ret < 0 ) { @@ -156,8 +156,9 @@ drmBufPtr mga_get_buffer_ioctl( mgaContextPtr mmesa ) -GLbitfield mgaDDClear( GLcontext *ctx, GLbitfield mask, GLboolean all, - GLint cx, GLint cy, GLint cw, GLint ch ) +static GLbitfield +mgaDDClear( GLcontext *ctx, GLbitfield mask, GLboolean all, + GLint cx, GLint cy, GLint cw, GLint ch ) { mgaContextPtr mmesa = MGA_CONTEXT(ctx); __DRIdrawablePrivate *dPriv = mmesa->driDrawable; @@ -290,7 +291,7 @@ void mgaSwapBuffers( mgaContextPtr mmesa ) int nbox; int ret; int i; - int tmp; + int tmp = 0; GLuint last_frame, last_wrap; FLUSH_BATCH( mmesa ); |