swrast: fix a few release build warnings

This commit is contained in:
Brian Paul 2015-02-23 17:48:00 -07:00
parent 1180e61a1b
commit a55831e8fa
2 changed files with 2 additions and 0 deletions

View File

@ -251,6 +251,7 @@ _swrast_update_fog_state( struct gl_context *ctx )
const struct gl_fragment_program *fp = ctx->FragmentProgram._Current;
assert(fp == NULL || fp->Base.Target == GL_FRAGMENT_PROGRAM_ARB);
(void) fp; /* silence unused var warning */
/* determine if fog is needed, and if so, which fog mode */
swrast->_FogEnabled = (!_swrast_use_fragment_program(ctx) &&

View File

@ -1468,6 +1468,7 @@ _swrast_read_rgba_span( struct gl_context *ctx, struct gl_renderbuffer *rb,
rb->_BaseFormat == GL_ALPHA);
assert(srb->Map);
(void) srb; /* silence unused var warning */
src = _swrast_pixel_address(rb, x + skip, y);