From 1aa8ad8b50f6bb8e7ec4911eef2518dc485b9285 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 8 Oct 2012 17:31:10 -0600 Subject: Revert "st/mesa: remove unused variables to fix compile warnings" 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 | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mesa/state_tracker') diff --git a/src/mesa/state_tracker/st_mesa_to_tgsi.c b/src/mesa/state_tracker/st_mesa_to_tgsi.c index 92f52671424..c614bdec56c 100644 --- a/src/mesa/state_tracker/st_mesa_to_tgsi.c +++ b/src/mesa/state_tracker/st_mesa_to_tgsi.c @@ -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]); -- cgit v1.2.3