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");

View File

@@ -45,6 +45,9 @@ struct gl_shader *
_mesa_new_shader(GLcontext *ctx, GLuint name, GLenum type)
{
struct gl_shader *shader;
(void) ctx;
assert(type == GL_FRAGMENT_SHADER || type == GL_VERTEX_SHADER);
shader = talloc_zero(NULL, struct gl_shader);
if (shader) {