glsl2: Clean-up two 'unused variable' warnings
This commit is contained in:
@@ -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");
|
||||
|
@@ -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) {
|
||||
|
Reference in New Issue
Block a user