Revert "st/mesa: remove unused variables to fix compile warnings"
authorBrian Paul <brianp@vmware.com>
Mon, 8 Oct 2012 23:31:10 +0000 (17:31 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 8 Oct 2012 23:32:54 +0000 (17:32 -0600)
This reverts commit 810d2e167c5a507084d1865a260809b847ca3201.

The pscreen variable is used in an assertion.  Use "(void) pscreen;"
to silence the warning.

src/mesa/state_tracker/st_mesa_to_tgsi.c

index 92f52671424573fd426a837bf03b21f911f0a710..c614bdec56cdbf265d4a0f6e8425478940d1d422 100644 (file)
@@ -1169,8 +1169,10 @@ st_translate_mesa_program(
                 * inconsistency, we insert a U2F.
                 */
                struct st_context *st = st_context(ctx);
+               struct pipe_screen *pscreen = st->pipe->screen;
                assert(procType == TGSI_PROCESSOR_VERTEX);
                assert(pscreen->get_shader_param(pscreen, PIPE_SHADER_VERTEX, PIPE_SHADER_CAP_INTEGERS));
+               (void) pscreen;  /* silence non-debug build warnings */
                if (!ctx->Const.NativeIntegers) {
                   struct ureg_dst temp = ureg_DECL_local_temporary(t->ureg);
                   ureg_U2F( t->ureg, ureg_writemask(temp, TGSI_WRITEMASK_X), t->systemValues[i]);