Mesa (glsl2): ir_to_mesa: Silence unused variable warnings
Ian Romanick
idr at kemper.freedesktop.org
Mon Aug 16 16:50:54 UTC 2010
Module: Mesa
Branch: glsl2
Commit: fc63e37b971b641dfdff000ba353c4810414c20e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fc63e37b971b641dfdff000ba353c4810414c20e
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Mon Aug 16 09:45:01 2010 -0700
ir_to_mesa: Silence unused variable warnings
---
src/mesa/program/ir_to_mesa.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp
index 06a6bc3..1fb5785 100644
--- a/src/mesa/program/ir_to_mesa.cpp
+++ b/src/mesa/program/ir_to_mesa.cpp
@@ -1632,8 +1632,7 @@ ir_to_mesa_visitor::visit(ir_dereference_record *ir)
* ir_dereference handler.
*/
static struct ir_to_mesa_dst_reg
-get_assignment_lhs(ir_dereference *ir, ir_to_mesa_visitor *v,
- ir_to_mesa_src_reg *r)
+get_assignment_lhs(ir_dereference *ir, ir_to_mesa_visitor *v)
{
/* The LHS must be a dereference. If the LHS is a variable indexed array
* access of a vector, it must be separated into a series conditional moves
@@ -1662,7 +1661,7 @@ ir_to_mesa_visitor::visit(ir_assignment *ir)
ir->rhs->accept(this);
r = this->result;
- l = get_assignment_lhs(ir->lhs, this, &r);
+ l = get_assignment_lhs(ir->lhs, this);
/* FINISHME: This should really set to the correct maximal writemask for each
* FINISHME: component written (in the loops below). This case can only
@@ -2554,6 +2553,7 @@ GLboolean
_mesa_ir_compile_shader(GLcontext *ctx, struct gl_shader *shader)
{
assert(shader->CompileStatus);
+ (void) ctx;
return GL_TRUE;
}
More information about the mesa-commit
mailing list