mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-11 22:10:30 +01:00
unichrome: Silence compiler warnings.
This commit is contained in:
parent
a60457b03b
commit
dc0a1ebc73
4 changed files with 6 additions and 6 deletions
|
|
@ -885,9 +885,6 @@ void viaFlushDmaLocked(struct via_context *vmesa, GLuint flags)
|
|||
}
|
||||
else if (vmesa->numClipRects) {
|
||||
drm_clip_rect_t *pbox = vmesa->pClipRects;
|
||||
__DRIdrawablePrivate *dPriv = vmesa->driDrawable;
|
||||
struct via_renderbuffer *const vrb =
|
||||
(struct via_renderbuffer *) dPriv->driverPrivate;
|
||||
|
||||
for (i = 0; i < vmesa->numClipRects; i++) {
|
||||
drm_clip_rect_t b;
|
||||
|
|
|
|||
|
|
@ -210,7 +210,9 @@ viaCreateBuffer(__DRIscreenPrivate *driScrnPriv,
|
|||
const __GLcontextModes *mesaVis,
|
||||
GLboolean isPixmap)
|
||||
{
|
||||
#if 000
|
||||
viaScreenPrivate *screen = (viaScreenPrivate *) driScrnPriv->private;
|
||||
#endif
|
||||
|
||||
GLboolean swStencil = (mesaVis->stencilBits > 0 &&
|
||||
mesaVis->depthBits != 24);
|
||||
|
|
|
|||
|
|
@ -330,7 +330,8 @@ do { \
|
|||
|
||||
#define LOCAL_VARS(n) \
|
||||
struct via_context *vmesa = VIA_CONTEXT(ctx); \
|
||||
GLuint color[n], spec[n]; \
|
||||
GLuint color[n] = { 0 }; \
|
||||
GLuint spec[n] = { 0 }; \
|
||||
GLuint coloroffset = vmesa->coloroffset; \
|
||||
GLuint specoffset = vmesa->specoffset; \
|
||||
(void)color; (void)spec; (void)coloroffset; (void)specoffset;
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ static void TAG(triangle)( GLcontext *ctx, GLuint e0, GLuint e1, GLuint e2 )
|
|||
struct vertex_buffer *VB = &TNL_CONTEXT( ctx )->vb;
|
||||
VERTEX *v[3];
|
||||
GLfloat offset = 0;
|
||||
GLfloat z[3];
|
||||
GLfloat z[3] = { 0 };
|
||||
GLenum mode = GL_FILL;
|
||||
GLuint facing = 0;
|
||||
LOCAL_VARS(3);
|
||||
|
|
@ -395,7 +395,7 @@ static void TAG(quadr)( GLcontext *ctx,
|
|||
struct vertex_buffer *VB = &TNL_CONTEXT( ctx )->vb;
|
||||
VERTEX *v[4];
|
||||
GLfloat offset = 0;
|
||||
GLfloat z[4];
|
||||
GLfloat z[4] = { 0 };
|
||||
GLenum mode = GL_FILL;
|
||||
GLuint facing = 0;
|
||||
LOCAL_VARS(4);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue