glsl2: Clean-up two 'unused variable' warnings

This commit is contained in:
Ian Romanick
2010-08-02 11:46:22 -07:00
parent cf41c8a0d8
commit 7ffe40532f
2 changed files with 5 additions and 0 deletions

View File

@@ -336,6 +336,8 @@ ir_validate::validate_ir(ir_instruction *ir, void *data)
void
check_node_type(ir_instruction *ir, void *data)
{
(void) data;
if (ir->ir_type <= ir_type_unset || ir->ir_type >= ir_type_max) {
printf("Instruction node with unset type\n");
ir->print(); printf("\n");