swrast: fix a few release build warnings
authorBrian Paul <brianp@vmware.com>
Tue, 24 Feb 2015 00:48:00 +0000 (17:48 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 24 Feb 2015 21:44:19 +0000 (14:44 -0700)
src/mesa/swrast/s_context.c
src/mesa/swrast/s_span.c

index cc7d9b37dc65b318a8dbcef6b227354818e4c4b1..51cc227605971e0ba86fd8244857e74386fdf486 100644 (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) &&
index 2340fddf65ddfd65267c7ec14a9ac84cfb0dba4c..a8dc391116a5e21c6061b38d68b3e03e78f85f3c 100644 (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);